We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b721d48 commit e1c8bd1Copy full SHA for e1c8bd1
Dynamic-Programming/tests/UniquePaths.test.js
@@ -1,15 +1,7 @@
1
import { uniquePaths } from '../UniquePaths'
2
3
-describe('UniquePaths', () => {
4
- it('uniquePaths for rows=3 and cols=7', () => {
5
- expect(uniquePaths(3, 7)).toBe(28)
6
- })
7
-
8
- it('uniquePaths for rows=3 and cols=2', () => {
9
- expect(climbStairs(3, 2)).toBe(3)
10
11
12
- it('uniquePaths for rows=8 and cols=14', () => {
13
- expect(climbStairs(8, 14)).toBe(77520)
14
+test('Test case for UniquePaths', () => {
+ expect(uniquePaths(3, 7)).toBe(28)
+ expect(uniquePaths(3, 2)).toBe(3)
+ expect(uniquePaths(8, 14)).toBe(77520)
15
})
0 commit comments