From 5a01975041e357ff57e355373372ca575880540e Mon Sep 17 00:00:00 2001 From: JIAMING ZHANG <jiamingz3@student.unimelb.edu.au> Date: Mon, 3 Sep 2018 15:30:00 +1000 Subject: [PATCH] test program update --- test/swen90006/machine/BoundaryTests.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/test/swen90006/machine/BoundaryTests.java b/test/swen90006/machine/BoundaryTests.java index 352a062..ba1a57e 100644 --- a/test/swen90006/machine/BoundaryTests.java +++ b/test/swen90006/machine/BoundaryTests.java @@ -24,16 +24,6 @@ public class BoundaryTests { } - //Any method annotation with "@Test" is executed as a test. - @Test public void aTest() - { - //the assertEquals method used to check whether two values are - //equal, using the equals method - final int expected = 2; - final int actual = 1 + 1; - assertEquals(expected, actual); - } - //To test B1 in Machine. @Test public void b1Test() { @@ -73,7 +63,7 @@ public class BoundaryTests { final InvalidInstructionException expected = new InvalidInstructionException(); final List<String> instructions = new ArrayList<>(); - instructions.add("LDR R2 R0 -1"); + instructions.add("LDR R2 R0 -65536"); instructions.add("RET R2"); Machine m = new Machine(); try { -- GitLab