Skip to content
Snippets Groups Projects
Commit 5a019750 authored by Jiaming Zhang's avatar Jiaming Zhang
Browse files

test program update

parent 65abe9f0
No related branches found
No related tags found
No related merge requests found
......@@ -24,16 +24,6 @@ public class BoundaryTests
{
}
//Any method annotation with "@Test" is executed as a test.
@Test public void aTest()
{
//the assertEquals method used to check whether two values are
//equal, using the equals method
final int expected = 2;
final int actual = 1 + 1;
assertEquals(expected, actual);
}
//To test B1 in Machine.
@Test public void b1Test()
{
......@@ -73,7 +63,7 @@ public class BoundaryTests
{
final InvalidInstructionException expected = new InvalidInstructionException();
final List<String> instructions = new ArrayList<>();
instructions.add("LDR R2 R0 -1");
instructions.add("LDR R2 R0 -65536");
instructions.add("RET R2");
Machine m = new Machine();
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment