Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SWEN90006-A1-2018
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abdul Mateen Ahmad Khan
SWEN90006-A1-2018
Commits
84eea559
Commit
84eea559
authored
6 years ago
by
Abdul Mateen Ahmad Khan
Browse files
Options
Downloads
Patches
Plain Diff
Update BoundaryTests.java
parent
b2b5729c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/swen90006/machine/BoundaryTests.java
+5
-11
5 additions, 11 deletions
test/swen90006/machine/BoundaryTests.java
with
5 additions
and
11 deletions
test/swen90006/machine/BoundaryTests.java
+
5
−
11
View file @
84eea559
...
@@ -433,7 +433,7 @@ public void b6_8()
...
@@ -433,7 +433,7 @@ public void b6_8()
lines1
.
add
(
"RET R1"
);
lines1
.
add
(
"RET R1"
);
assertEquals
(
m
.
execute
(
lines1
),
2
);
}
}
...
@@ -645,7 +645,7 @@ throws Throwable
...
@@ -645,7 +645,7 @@ throws Throwable
lines1
.
add
(
" MOV R1
2
"
);
lines1
.
add
(
" MOV R1
3
"
);
lines1
.
add
(
" JZ R1 2"
);
lines1
.
add
(
" JZ R1 2"
);
lines1
.
add
(
" MOV R5 2"
);
lines1
.
add
(
" MOV R5 2"
);
lines1
.
add
(
" MOV R6 2"
);
lines1
.
add
(
" MOV R6 2"
);
...
@@ -667,7 +667,7 @@ throws Throwable
...
@@ -667,7 +667,7 @@ throws Throwable
lines1
.
add
(
" MOV R1
3
"
);
lines1
.
add
(
" MOV R1
1
"
);
lines1
.
add
(
" JZ R1 2"
);
lines1
.
add
(
" JZ R1 2"
);
lines1
.
add
(
" MOV R5 2"
);
lines1
.
add
(
" MOV R5 2"
);
lines1
.
add
(
" RET R4"
);
lines1
.
add
(
" RET R4"
);
...
@@ -692,7 +692,7 @@ throws Throwable
...
@@ -692,7 +692,7 @@ throws Throwable
lines1
.
add
(
" MOV R1 2"
);
lines1
.
add
(
" MOV R1 2"
);
lines1
.
add
(
" JZ R1 2"
);
lines1
.
add
(
" JZ R1 2"
);
lines1
.
add
(
" MOV R3 2"
);
lines1
.
add
(
" RET R4"
);
lines1
.
add
(
" RET R4"
);
lines1
.
add
(
" RET R3"
);
lines1
.
add
(
" RET R3"
);
...
@@ -701,13 +701,7 @@ throws Throwable
...
@@ -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
//Read in a file containing a program and convert into a list of
//string instructions
//string instructions
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment