From 84eea559a340fbee256fc29e33d2136918be1b4c Mon Sep 17 00:00:00 2001 From: Abdul Mateen Ahmad Khan <a.khan21@student.unimelb.edu.au> Date: Mon, 3 Sep 2018 18:55:26 +1000 Subject: [PATCH] Update BoundaryTests.java --- test/swen90006/machine/BoundaryTests.java | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/test/swen90006/machine/BoundaryTests.java b/test/swen90006/machine/BoundaryTests.java index 5bbc75c..c864cd8 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 -- GitLab