Skip to content

Commit 2cd3651

Browse files
committed
tests: Update the tests
1 parent 71ea456 commit 2cd3651

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/piccode/rt/Runtime.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void function() {
2020
var func = ast.nodes.getFirst();
2121

2222
assertFalse(!(func instanceof FunctionAst));
23-
var node = func.execute();
23+
var node = func.execute(null);
2424
assertTrue(node instanceof PiccodeClosure);
2525
}
2626

@@ -35,7 +35,7 @@ public void variable() {
3535
assertFalse(!(let instanceof VarDecl));
3636

3737
Context.top.pushStackFrame(ast);
38-
var node = let.execute();
38+
var node = let.execute(null);
3939
Context.top.dropStackFrame();
4040
assertTrue(node instanceof PiccodeNumber num && num.toString().equals("1"));
4141
}
@@ -47,7 +47,7 @@ public void importModule() {
4747
assertEquals(ast.nodes.size(), 1);
4848
var import_ = ast.nodes.getFirst();
4949
assertFalse(!(import_ instanceof ImportAst));
50-
var node = import_.execute();
50+
var node = import_.execute(null);
5151
assertTrue(node instanceof PiccodeBoolean bool && bool.toString().equals("true"));
5252
}
5353

0 commit comments

Comments
 (0)