From d745f000d6d60b9cdf0ba40dbf80660c1aa6bc61 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 20 Jun 2016 20:55:22 +0300 Subject: Implemented general enhancements --- test/MainTest.java | 2 +- test/resources/funcdef.bork | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 test/resources/funcdef.bork (limited to 'test') 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 -- cgit v1.3