From c1acbdf3737d6d4caa7c44b95eef48dff748adc1 Mon Sep 17 00:00:00 2001 From: Alena Bandarovich Date: Fri, 9 Feb 2024 23:01:42 +0100 Subject: [PATCH] Test: Test function for large numbers --- src/test/java/CalculationsTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/CalculationsTest.java b/src/test/java/CalculationsTest.java index 6586f94..634a972 100644 --- a/src/test/java/CalculationsTest.java +++ b/src/test/java/CalculationsTest.java @@ -32,5 +32,8 @@ public class CalculationsTest { assertEquals(24, fact.calculateFactorial(4)); assertEquals(120, fact.calculateFactorial(5)); + // Test with large number + assertEquals(3628800, fact.calculateFactorial(10)); } } +