|
@ -32,5 +32,8 @@ public class CalculationsTest { |
|
|
assertEquals(24, fact.calculateFactorial(4)); |
|
|
assertEquals(24, fact.calculateFactorial(4)); |
|
|
assertEquals(120, fact.calculateFactorial(5)); |
|
|
assertEquals(120, fact.calculateFactorial(5)); |
|
|
|
|
|
|
|
|
|
|
|
// Test with large number |
|
|
|
|
|
assertEquals(3628800, fact.calculateFactorial(10)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
xxxxxxxxxx