Skip to content

Commit 219f2c3

Browse files
author
Amit Kothiyal
committed
Added tests in the test directory
1 parent e36e999 commit 219f2c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/com/jwetherell/algorithms/mathematics/test/Mathematics.java

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ public void multiplication() {
5050
result = Integer.parseInt(Multiplication.multiplyUsingFFT(Integer.toString(a), Integer.toString(b)));
5151
check = Multiplication.multiplication(a, b);
5252
assertTrue("Multiplication using FFT. a=" + a + " b=" + b + " result=" + result + " check=" + check, (result == check));
53+
54+
result = Integer.parseInt(Multiplication.multiplyUsingLoopWithStringInput(Integer.toString(a), Integer.toString(b)));
55+
check = Multiplication.multiplication(a, b);
56+
assertTrue("Multiplication using loop with string input. a=" + a + " b=" + b + " result=" + result + " check=" + check, (result == check));
5357
}
5458

5559
@Test

0 commit comments

Comments
 (0)