Skip to content
Snippets Groups Projects
Commit 20a3e918 authored by Linyuan Zhao's avatar Linyuan Zhao
Browse files

Replace BoundaryTests.java

parent c13dab81
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment