Tests: Fix failing test because the error message changed.

This commit is contained in:
2023-03-23 00:32:50 +01:00
parent 06609ae899
commit f55f2661de

View File

@@ -89,7 +89,7 @@ public class VariableDeclarationTest {
// when / then // when / then
var e = assertThrows(RuntimeException.class, () -> ctxAnal.visit(tree)); var e = assertThrows(RuntimeException.class, () -> ctxAnal.visit(tree));
assertEquals("Error in line 1:34 Redeclaration of variable with name \"x\".", e.getMessage()); assertEquals("Error in line 1:34 Redeclaration of variable or parameter with name \"x\".", e.getMessage());
} }
@Test @Test