forked from TheAlgorithms/Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClimbStairsTest.java
More file actions
33 lines (25 loc) · 727 Bytes
/
ClimbStairsTest.java
File metadata and controls
33 lines (25 loc) · 727 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
package com.thealgorithms.dynamicprogramming;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
public class ClimbStairsTest {
@Test
void climbStairsTestForTwo() {
assertEquals(2, ClimbingStairs.numberOfWays(2));
}
@Test
void climbStairsTestForZero() {
assertEquals(0, ClimbingStairs.numberOfWays(0));
}
@Test
void climbStairsTestForOne() {
assertEquals(1, ClimbingStairs.numberOfWays(1));
}
@Test
void climbStairsTestForFive() {
assertEquals(8, ClimbingStairs.numberOfWays(5));
}
@Test
void climbStairsTestForThree() {
assertEquals(3, ClimbingStairs.numberOfWays(3));
}
}