Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
HFTSoftwareProject
testcases
Commits
4e6aa580
Commit
4e6aa580
authored
8 months ago
by
Younis
Browse files
Options
Download
Email Patches
Plain Diff
Add new file
parent
85d70b77
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MultiplierTest.java
+23
-0
MultiplierTest.java
with
23 additions
and
0 deletions
+23
-0
MultiplierTest.java
0 → 100644
+
23
-
0
View file @
4e6aa580
import
org.junit.Test
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
public
class
MultiplierTest
{
@Test
public
void
testMultiply
()
{
// Test case 1
assertEquals
(
6
,
Multiplier
.
multiply
(
2
,
3
));
// Test case 2
assertEquals
(
20
,
Multiplier
.
multiply
(
4
,
5
));
// Test case 3
assertEquals
(
0
,
Multiplier
.
multiply
(
0
,
10
));
// Test case 4
assertEquals
(
0
,
Multiplier
.
multiply
(
7
,
0
));
// Test case 5
assertEquals
(
15
,
Multiplier
.
multiply
(
1
,
15
));
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets