From 6c9aca3eb6119df735267a25c0504d51ed9e421d Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Mon, 5 Jul 2021 19:03:05 +0200 Subject: [PATCH] Add test for part of #9 --- .../java/edu/kit/typicalc/model/parser/LambdaParserTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/edu/kit/typicalc/model/parser/LambdaParserTest.java b/src/test/java/edu/kit/typicalc/model/parser/LambdaParserTest.java index 1612cfa..f8aca8c 100644 --- a/src/test/java/edu/kit/typicalc/model/parser/LambdaParserTest.java +++ b/src/test/java/edu/kit/typicalc/model/parser/LambdaParserTest.java @@ -124,6 +124,7 @@ class LambdaParserTest { error = parser.parse().unwrapError(); assertEquals(ParseError.UNEXPECTED_TOKEN, error); assertEquals(new Token(TokenType.DOT, ".", "λx..", 3), error.getCause().get()); + assertEquals(ExpectedInput.TERM, error.getExpectedInput().get()); parser = new LambdaParser("let ) ="); error = parser.parse().unwrapError(); assertEquals(ParseError.UNEXPECTED_TOKEN, error);