summaryrefslogtreecommitdiff
path: root/src/test/java/com/seaofnodes/simple/Chapter01Test.java
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2024-04-23 17:23:16 +0100
committerCliff Click <cliffc@acm.org>2024-10-23 17:51:09 -0700
commitb933257d6b26343f3ad517f5876bb5a0093ab403 (patch)
tree82b21a1c11c55c1cf5b6662e6066a0b063626e3c /src/test/java/com/seaofnodes/simple/Chapter01Test.java
parent9ed409df4516e0089afbc7d5ccf9b029d431be04 (diff)
downloadSimple-linear-chapter10.tar.gz
Simple-linear-chapter10.zip
Chapter 10: Structs and Memorylinear-chapter10
Co-authored-by: Thalia Archibald <thalia@archibald.dev> Co-authored-by: Dibyendu Majumdar <mobile@majumdar.org.uk> Co-authored-by: XmiliaH <45106915+XmiliaH@users.noreply.github.com> Co-authored-by: XmiliaH <xmilia.hermit@gmail.com> Co-authored-by: Robert Obkircher <robert.obkircher@gmail.com>
Diffstat (limited to 'src/test/java/com/seaofnodes/simple/Chapter01Test.java')
-rw-r--r--src/test/java/com/seaofnodes/simple/Chapter01Test.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/seaofnodes/simple/Chapter01Test.java b/src/test/java/com/seaofnodes/simple/Chapter01Test.java
index 13b42f96..89882b2f 100644
--- a/src/test/java/com/seaofnodes/simple/Chapter01Test.java
+++ b/src/test/java/com/seaofnodes/simple/Chapter01Test.java
@@ -41,7 +41,7 @@ public class Chapter01Test {
new Parser("ret").parse();
fail();
} catch( RuntimeException e ) {
- assertEquals("Syntax error, expected =: ",e.getMessage());
+ assertEquals("Undefined name 'ret'",e.getMessage());
}
}
@@ -83,7 +83,7 @@ public class Chapter01Test {
new Parser("return100").parse();
fail();
} catch( RuntimeException e ) {
- assertEquals("Syntax error, expected =: ",e.getMessage());
+ assertEquals("Undefined name 'return100'",e.getMessage());
}
}