diff options
Diffstat (limited to 'chapter22/src/test/java')
| -rw-r--r-- | chapter22/src/test/java/com/seaofnodes/simple/Chapter22Test.java | 7 | ||||
| -rw-r--r-- | chapter22/src/test/java/com/seaofnodes/simple/progs/riscv_load.smp | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/chapter22/src/test/java/com/seaofnodes/simple/Chapter22Test.java b/chapter22/src/test/java/com/seaofnodes/simple/Chapter22Test.java index 3f86e8ac..b99a01a6 100644 --- a/chapter22/src/test/java/com/seaofnodes/simple/Chapter22Test.java +++ b/chapter22/src/test/java/com/seaofnodes/simple/Chapter22Test.java @@ -32,6 +32,13 @@ public class Chapter22Test { } + @Test public void testJig1() throws IOException { + EvalRisc5 R5 = TestRisc5.build("riscv_load", 0, 0, true); + int trap = R5.step(100); + assertEquals(0,trap); + // do assertEquals here + } + // Int now is changed to 4 bytes. @Test public void testPerson() throws IOException { String person = "6\n"; TestC.run("person", person, 0); diff --git a/chapter22/src/test/java/com/seaofnodes/simple/progs/riscv_load.smp b/chapter22/src/test/java/com/seaofnodes/simple/progs/riscv_load.smp new file mode 100644 index 00000000..2366f354 --- /dev/null +++ b/chapter22/src/test/java/com/seaofnodes/simple/progs/riscv_load.smp @@ -0,0 +1 @@ +return 123456789012345;
\ No newline at end of file |
