mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-13 20:53:09 +00:00
Add test for part of #9
This commit is contained in:
parent
c28576175a
commit
6c9aca3eb6
@ -124,6 +124,7 @@ class LambdaParserTest {
|
|||||||
error = parser.parse().unwrapError();
|
error = parser.parse().unwrapError();
|
||||||
assertEquals(ParseError.UNEXPECTED_TOKEN, error);
|
assertEquals(ParseError.UNEXPECTED_TOKEN, error);
|
||||||
assertEquals(new Token(TokenType.DOT, ".", "λx..", 3), error.getCause().get());
|
assertEquals(new Token(TokenType.DOT, ".", "λx..", 3), error.getCause().get());
|
||||||
|
assertEquals(ExpectedInput.TERM, error.getExpectedInput().get());
|
||||||
parser = new LambdaParser("let ) =");
|
parser = new LambdaParser("let ) =");
|
||||||
error = parser.parse().unwrapError();
|
error = parser.parse().unwrapError();
|
||||||
assertEquals(ParseError.UNEXPECTED_TOKEN, error);
|
assertEquals(ParseError.UNEXPECTED_TOKEN, error);
|
||||||
|
Loading…
Reference in New Issue
Block a user