Browse Source

Test: Test function for large numbers

remotes/origin/test/client/add-test-cases
Alena Bandarovich 11 months ago
parent
commit
c1acbdf373
  1. 3
      src/test/java/CalculationsTest.java

3
src/test/java/CalculationsTest.java

@ -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));
} }
} }
Loading…
Cancel
Save