Skip to content

Commit

Permalink
Temporarily bandaid GC tests
Browse files Browse the repository at this point in the history
Note that adding to the standard library increases the min number of words that Ooga needs to operate
  • Loading branch information
JothamWong committed Apr 16, 2024
1 parent de2ec1f commit 2f72c59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ x;
`,
5,
'',
300
400
);

// Testing mark and sweep, with exactly one variable that should be freed
Expand All @@ -497,7 +497,7 @@ x;
`,
5,
'',
220
400
);

// Testing structs (no methods for now)
Expand Down Expand Up @@ -1044,7 +1044,7 @@ go googa(x, y);
`,
true,
'15',
206
400
);

// Test various array expressions
Expand Down
1 change: 0 additions & 1 deletion src/vm/oogavm-machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,6 @@ export function run(numWords = 1000000) {
log('Program value is ' + returnValue);
log('After STD initialization: ');
printHeapUsage();
console.log("Return value is " + returnValue);
debugHeap();
log('Return value: ' + returnValue);
return returnValue;
Expand Down

0 comments on commit 2f72c59

Please sign in to comment.