diff --git a/test/swen90006/machine/BoundaryTests.java b/test/swen90006/machine/BoundaryTests.java index 5bbc75c8334034aa776dd338d30afdb9ef84f7b5..c864cd8d02d1780de9e731664ee76a35fc2da111 100644 --- a/test/swen90006/machine/BoundaryTests.java +++ b/test/swen90006/machine/BoundaryTests.java @@ -433,7 +433,7 @@ public void b6_8() lines1.add("RET R1"); - assertEquals( m.execute(lines1), 2); + } @@ -645,7 +645,7 @@ throws Throwable - lines1.add(" MOV R1 2"); + lines1.add(" MOV R1 3"); lines1.add(" JZ R1 2"); lines1.add(" MOV R5 2"); lines1.add(" MOV R6 2"); @@ -667,7 +667,7 @@ throws Throwable - lines1.add(" MOV R1 3"); + lines1.add(" MOV R1 1"); lines1.add(" JZ R1 2"); lines1.add(" MOV R5 2"); lines1.add(" RET R4"); @@ -692,7 +692,7 @@ throws Throwable lines1.add(" MOV R1 2"); lines1.add(" JZ R1 2"); - lines1.add(" MOV R3 2"); + lines1.add(" RET R4"); lines1.add(" RET R3"); @@ -701,13 +701,7 @@ throws Throwable } - @Test public void aFailedTest() - { - //include a message for better feedback - final int expected = 2; - final int actual = 1 + 2; - assertEquals("Some failure message", expected, actual); - } + //Read in a file containing a program and convert into a list of //string instructions