diff --git a/test/swen90006/machine/BoundaryTests.java b/test/swen90006/machine/BoundaryTests.java index 9ea7aa2c9d50be7cbf010b12e4909bc8d5c3d604..eff8e607e9093949c04188945921ed79b8878af9 100644 --- a/test/swen90006/machine/BoundaryTests.java +++ b/test/swen90006/machine/BoundaryTests.java @@ -93,7 +93,7 @@ public class BoundaryTests @Test (expected = NoReturnValueException.class) public void B7() { final List<String> lines = new ArrayList(); - lines.add("LDR R1 R0 -65536"); + lines.add("LDR R1 R0 -65535"); Machine m = new Machine(); m.execute(lines); } @@ -101,7 +101,7 @@ public class BoundaryTests @Test (expected = InvalidInstructionException.class) public void B8() { final List<String> lines = new ArrayList(); - lines.add("LDR R1 R0 -65537"); + lines.add("LDR R1 R0 -65536"); Machine m = new Machine(); m.execute(lines); } @@ -188,7 +188,7 @@ public class BoundaryTests public void B18() { final List<String> lines = new ArrayList(); lines.add("MOV R1 0"); - lines.add("JMP -65536"); + lines.add("JMP -65535"); Machine m = new Machine(); m.execute(lines); }