aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2016-06-15 21:56:03 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2016-07-26 19:46:51 +0300
commitf441022881945db08846e09a8f3bfee2f8cfa95d (patch)
tree3b565c6902e5b5b6c351df89fe1d58b00d79f091 /test
parent12eeefcdba1ee392f033f51e6b9826eaae3c4de6 (diff)
Add interpreter and AST
Diffstat (limited to 'test')
-rw-r--r--test/MainTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/MainTest.java b/test/MainTest.java
index fec91a7..256998d 100644
--- a/test/MainTest.java
+++ b/test/MainTest.java
@@ -21,4 +21,10 @@ public class MainTest {
String[] fileTestArgument = {"-f", "test.file"};
assertTrue(Main.parseArguments(fileTestArgument));
}
+
+ @Test
+ public void testWholeProcedure() {
+ String input = "x <- 1 + 2";
+ Main.run(input);
+ }
} \ No newline at end of file