|
1 | 1 | const pascal = require('./pascal');
|
2 | 2 |
|
3 | 3 | describe('pascal', () => {
|
4 |
| - test('First test description', () => { |
5 |
| - // Replace this comment with any other necessary code, and update the expect line as necessary |
| 4 | + test('Gets the first row of pascal', () => { |
| 5 | + expect(pascal(1)).toEqual([1]); |
| 6 | + }); |
| 7 | + |
| 8 | + test.skip('Gets the second row of pascal', () => { |
| 9 | + expect(pascal(2)).toEqual([1, 1]); |
| 10 | + }); |
| 11 | + |
| 12 | + test.skip('Gets the third row of pascal', () => { |
| 13 | + expect(pascal(3)).toEqual([1, 2, 1]); |
| 14 | + }); |
| 15 | + |
| 16 | + test.skip('Gets the fourth row of pascal', () => { |
| 17 | + expect(pascal(4)).toEqual([1, 3, 3, 1]); |
| 18 | + }); |
| 19 | + |
| 20 | + test.skip('Gets the fifth row of pascal', () => { |
| 21 | + expect(pascal(5)).toEqual([1, 4, 6, 4, 1]); |
| 22 | + }); |
6 | 23 |
|
7 |
| - expect(pascal()).toBe(''); |
| 24 | + test.skip('Gets the sixth row of pascal', () => { |
| 25 | + expect(pascal(6)).toEqual([1, 5, 10, 10, 5, 1]); |
8 | 26 | });
|
9 |
| - |
10 |
| - test.skip('Second test description', () => { |
11 |
| - // Replace this comment with any other necessary code, and update the expect line as necessary |
12 | 27 |
|
13 |
| - expect(pascal()).toBe(''); |
| 28 | + test.skip('Gets the seventh row of pascal', () => { |
| 29 | + expect(pascal(7)).toEqual([1, 6, 15, 20, 15, 6, 1]); |
14 | 30 | });
|
15 | 31 | });
|
0 commit comments