1 parent 1972e36 commit ce89f11Copy full SHA for ce89f11
1 file changed
src/test/java/net/jackwhite20/slug/parser/TestParser.java
@@ -18,6 +18,7 @@
18
19
import net.jackwhite20.slug.ast.FunctionNode;
20
import net.jackwhite20.slug.ast.MainNode;
21
+import net.jackwhite20.slug.ast.NoOpNode;
22
import net.jackwhite20.slug.ast.Node;
23
import net.jackwhite20.slug.lexer.Lexer;
24
import org.junit.Before;
@@ -60,7 +61,8 @@ public void testParser() {
60
61
FunctionNode functionNode = (FunctionNode) function;
62
63
assertEquals("Main", functionNode.getName());
- assertEquals(0, functionNode.getChildren().size());
64
+ assertEquals(1, functionNode.getChildren().size());
65
+ assertTrue(functionNode.getChildren().get(0) instanceof NoOpNode);
66
assertEquals(0, functionNode.getParameter().size());
67
}
68
0 commit comments