- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProblem15Test.java
More file actions
Latest commit
36 lines (28 loc) · 627 Bytes
/
Copy pathProblem15Test.java
File metadata and controls
36 lines (28 loc) · 627 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
29
30
31
32
33
34
35
36
importstaticorg.junit.Assert.*;
importorg.junit.Test;
publicclassProblem15Test {
@Test
publicvoidtestOne() {
assertEquals(Problem15.numLatticePaths(1), 2);
}
@Test
publicvoidtestTwo() {
assertEquals(Problem15.numLatticePaths(2), 6);
}
@Test
publicvoidtestThree() {
assertEquals(Problem15.numLatticePaths(3), 20);
}
@Test
publicvoidtestFour() {
assertEquals(Problem15.numLatticePaths(4), 70);
}
@Test
publicvoidtestFive() {
assertEquals(Problem15.numLatticePaths(5), 252);
}
@Test
publicvoidtestTwenty() {
assertEquals(Problem15.numLatticePaths(20), 137846528820L);
}
}