Skip to content

Commit 8982692

Browse files
Add tests for factorial (#3107)
1 parent 45f3e5b commit 8982692

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.thealgorithms.maths;
2+
3+
import org.junit.jupiter.api.Test;
4+
import static org.junit.jupiter.api.Assertions.*;
5+
6+
7+
8+
public class FactorialTest {
9+
10+
@Test
11+
public void test() {
12+
Factorial fact = new Factorial();
13+
assertEquals(120,fact.factorial(5));
14+
}
15+
16+
}

0 commit comments

Comments
 (0)