Catch small edge-case in parser

This commit is contained in:
Kenzie Togami
2019-10-27 12:58:32 -07:00
parent ae71c2a51b
commit 777b132a04
2 changed files with 6 additions and 1 deletions

View File

@ -74,6 +74,11 @@ public class ExpressionTest {
assertEquals(8, compile("foo+bar", "foo", "bar").evaluate(5D, 3D), 0);
}
@Test
void testTightTokenization() {
assertEquals(4, simpleEval("3+1"), 0);
}
@Test
public void testErrors() {
// test lexer errors