diff --git a/src/test/java/com/thealgorithms/maths/FactorialTest.java b/src/test/java/com/thealgorithms/maths/FactorialTest.java new file mode 100644 index 000000000..0eee66c37 --- /dev/null +++ b/src/test/java/com/thealgorithms/maths/FactorialTest.java @@ -0,0 +1,16 @@ +package com.thealgorithms.maths; + +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; + + + +public class FactorialTest { + + @Test + public void test() { + Factorial fact = new Factorial(); + assertEquals(120,fact.factorial(5)); + } + +} \ No newline at end of file