merge: add test case and description (#842)

This commit is contained in:
YATIN KATHURIA
2021-11-22 22:23:48 +05:30
committed by GitHub
parent 02a4cee5c2
commit 4e7a15694b
2 changed files with 26 additions and 4 deletions

View File

@ -0,0 +1,19 @@
import { climbStairs } from '../ClimbingStairs'
describe('ClimbingStairs', () => {
it('climbStairs of 0', () => {
expect(climbStairs(0)).toBe(1)
})
it('climbStairs of 1', () => {
expect(climbStairs(1)).toBe(1)
})
it('climbStairs of 10', () => {
expect(climbStairs(10)).toBe(89)
})
it('climbStairs of 15', () => {
expect(climbStairs(15)).toBe(987)
})
})