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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiaming Zhang
SWEN90006-A1-2018
Commits
5a019750
Commit
5a019750
authored
6 years ago
by
Jiaming Zhang
Browse files
Options
Downloads
Patches
Plain Diff
test program update
parent
65abe9f0
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
+1
-11
1 addition, 11 deletions
test/swen90006/machine/BoundaryTests.java
with
1 addition
and
11 deletions
test/swen90006/machine/BoundaryTests.java
+
1
−
11
View file @
5a019750
...
...
@@ -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
{
...
...
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