From b7670e32ef6ef47285e9159fbed1cda9494c88ca Mon Sep 17 00:00:00 2001
From: RUI ZHAO <zhaor4@student.unimelb.edu.au>
Date: Sat, 15 Sep 2018 14:03:28 +1000
Subject: [PATCH] modify the minimum boundary from -65536 to -65535

---
 test/swen90006/machine/BoundaryTests.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/swen90006/machine/BoundaryTests.java b/test/swen90006/machine/BoundaryTests.java
index 9ea7aa2..eff8e60 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);
   }  
-- 
GitLab