Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e1c8bd1

Browse files
Fix: Made the test cases to come under single Test block
1 parent b721d48 commit e1c8bd1

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed
Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
import { uniquePaths } from '../UniquePaths'
22

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-
})
3+
test('Test case for UniquePaths', () => {
4+
expect(uniquePaths(3, 7)).toBe(28)
5+
expect(uniquePaths(3, 2)).toBe(3)
6+
expect(uniquePaths(8, 14)).toBe(77520)
157
})

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /