File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
test/com/jwetherell/algorithms/mathematics/test Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ public void multiplication() {
50
50
result = Integer .parseInt (Multiplication .multiplyUsingFFT (Integer .toString (a ), Integer .toString (b )));
51
51
check = Multiplication .multiplication (a , b );
52
52
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 ));
53
57
}
54
58
55
59
@ Test
You can’t perform that action at this time.
0 commit comments