Skip to content
GitLab
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
Sep 24, 2024
by
Younis
Browse files
Add new file
parent
85d70b77
Changes
1
Hide whitespace changes
Inline
Side-by-side
MultiplierTest.java
0 → 100644
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
));
}
}
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