File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed
Dynamic-Programming/tests Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change 1
1
import { uniquePaths } from '../UniquePaths'
2
2
3
- test ( 'Test case with rows=3 and cols=7' , ( ) => {
4
- const rows = 3
5
- const cols = 7
6
- expect ( uniquePaths ( rows , cols ) ) . toBe ( 28 )
7
- } )
3
+ describe ( 'UniquePaths' , ( ) => {
4
+ it ( 'uniquePaths for rows=3 and cols=7' , ( ) => {
5
+ expect ( uniquePaths ( 3 , 7 ) ) . toBe ( 28 )
6
+ } )
8
7
9
- test ( 'Test case with rows=3 and cols=2' , ( ) => {
10
- const rows = 3
11
- const cols = 2
12
- expect ( uniquePaths ( rows , cols ) ) . toBe ( 3 )
13
- } )
8
+ it ( 'uniquePaths for rows=3 and cols=2' , ( ) => {
9
+ expect ( climbStairs ( 3 , 2 ) ) . toBe ( 3 )
10
+ } )
14
11
15
- test ( 'Test case with rows=8 and cols=14' , ( ) => {
16
- const rows = 8
17
- const cols = 14
18
- expect ( uniquePaths ( rows , cols ) ) . toBe ( 77520 )
12
+ it ( 'uniquePaths for rows=8 and cols=14' , ( ) => {
13
+ expect ( climbStairs ( 8 , 14 ) ) . toBe ( 77520 )
14
+ } )
19
15
} )
You can’t perform that action at this time.
0 commit comments