aboutsummaryrefslogtreecommitdiffstats
path: root/test/MainTest.java
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2016-06-16 20:21:25 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2016-07-26 19:47:02 +0300
commitd35a37a449d31e6f4b43b937abf7b0e1fc497828 (patch)
tree8d65ac1068dbf09de480e7cae0fb39ec21d330ec /test/MainTest.java
parentf441022881945db08846e09a8f3bfee2f8cfa95d (diff)
Grammar now uses reverse polish notation
Diffstat (limited to 'test/MainTest.java')
-rw-r--r--test/MainTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/MainTest.java b/test/MainTest.java
index 256998d..d6171a5 100644
--- a/test/MainTest.java
+++ b/test/MainTest.java
@@ -1,6 +1,7 @@
package com.jantuomi.interpreter.test;
import com.jantuomi.interpreter.main.Main;
+import com.jantuomi.interpreter.main.exception.InterpreterException;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
@@ -23,7 +24,7 @@ public class MainTest {
}
@Test
- public void testWholeProcedure() {
+ public void testWholeProcedure() throws InterpreterException {
String input = "x <- 1 + 2";
Main.run(input);
}