diff --git a/test/swen90006/machine/BoundaryTests.java b/test/swen90006/machine/BoundaryTests.java index 47d55a5d142b947c2a307426377e65ae2bb878e2..8ba2285cafe7e4ace17ddfd581bf4ff91c09c0d1 100644 --- a/test/swen90006/machine/BoundaryTests.java +++ b/test/swen90006/machine/BoundaryTests.java @@ -286,20 +286,20 @@ public void Add_Regsiter_Boundary3(){ fail("Should not have thrown any exception"); } } -//ret R0 R31;(Off point) -@Test public void Ret_Regsiter_4(){ - try{ - //execute code that you expect not to throw Exceptions. - List<String> list = new ArrayList<>(); - Machine m =new Machine(); - list.add("ret R0 R31;"); - thrown.expect(InvalidInstructionException.class); - m.execute(list); - } - catch(NoReturnValueException e){ - fail("Should not have thrown any exception"); - } -} +////ret R0 R31;(Off point) +//@Test public void Ret_Regsiter_4(){ +// try{ +// //execute code that you expect not to throw Exceptions. +// List<String> list = new ArrayList<>(); +// Machine m =new Machine(); +// list.add("ret R0 R31;"); +// thrown.expect(InvalidInstructionException.class); +// m.execute(list); +// } +// catch(NoReturnValueException e){ +// fail("Should not have thrown any exception"); +// } +//} @Test public void MOVE_X() { List<String> list = new ArrayList<>(); Machine m =new Machine();