aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2016-06-20 20:55:22 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2016-07-26 19:47:02 +0300
commitd745f000d6d60b9cdf0ba40dbf80660c1aa6bc61 (patch)
treee00ea32ae3a2d291768084544cb21429281dc0ae /test
parentd35a37a449d31e6f4b43b937abf7b0e1fc497828 (diff)
Implemented general enhancements
Diffstat (limited to 'test')
-rw-r--r--test/MainTest.java2
-rw-r--r--test/resources/funcdef.bork8
2 files changed, 9 insertions, 1 deletions
diff --git a/test/MainTest.java b/test/MainTest.java
index d6171a5..1730a6b 100644
--- a/test/MainTest.java
+++ b/test/MainTest.java
@@ -25,7 +25,7 @@ public class MainTest {
@Test
public void testWholeProcedure() throws InterpreterException {
- String input = "x <- 1 + 2";
+ String input = "- + 2 5 1";
Main.run(input);
}
} \ No newline at end of file
diff --git a/test/resources/funcdef.bork b/test/resources/funcdef.bork
new file mode 100644
index 0000000..8412129
--- /dev/null
+++ b/test/resources/funcdef.bork
@@ -0,0 +1,8 @@
+/* kommentti juu jee */
+
+func my_func x y as
+ + x 1
+ - y x
+end
+
+my_func(1 2) \ No newline at end of file