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 b721d48

Browse files
Fix: Made all test cases to go under single block
1 parent 0496b33 commit b721d48

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed
Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
import { 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
})

0 commit comments

Comments
(0)

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