- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSmallFactorialsTest.java
More file actions
Latest commit
28 lines (21 loc) · 533 Bytes
/
Copy pathSmallFactorialsTest.java
File metadata and controls
28 lines (21 loc) · 533 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
importstaticorg.junit.Assert.*;
importjava.math.*;
importorg.junit.Test;
publicclassSmallFactorialsTest {
@Test
publicvoidtest1() {
assertEquals(SmallFactorials.factorial(1), BigInteger.valueOf(1));
}
@Test
publicvoidtest2() {
assertEquals(SmallFactorials.factorial(2), BigInteger.valueOf(2));
}
@Test
publicvoidtest3() {
assertEquals(SmallFactorials.factorial(3), BigInteger.valueOf(6));
}
@Test
publicvoidtest4() {
assertEquals(SmallFactorials.factorial(5), BigInteger.valueOf(120));
}
}