diff --git a/src/test/java/VariableDeclarationTest.java b/src/test/java/VariableDeclarationTest.java index 7727159..9f1af5b 100644 --- a/src/test/java/VariableDeclarationTest.java +++ b/src/test/java/VariableDeclarationTest.java @@ -89,7 +89,7 @@ public class VariableDeclarationTest { // when / then 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