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 11import { uniquePaths } from '../UniquePaths'
22
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+ } )
87
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+ } )
1411
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+ } )
1915} )
You can’t perform that action at this time.
0 commit comments