From 20a3e918903a13ddd7bfef8b1d6cc15c8c095353 Mon Sep 17 00:00:00 2001
From: Linyuan Zhao <linyuanz@student.unimelb.edu.au>
Date: Mon, 17 Sep 2018 15:26:26 +1000
Subject: [PATCH] Replace BoundaryTests.java
---
test/swen90006/machine/BoundaryTests.java | 28 +++++++++++------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/test/swen90006/machine/BoundaryTests.java b/test/swen90006/machine/BoundaryTests.java
index 47d55a5..8ba2285 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();
--
GitLab