|
| 1 | +const pascal = require('./pascal'); |
| 2 | + |
| 3 | +describe('pascal', () => { |
| 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 | + }); |
| 23 | + |
| 24 | + test.skip('Gets the sixth row of pascal', () => { |
| 25 | + expect(pascal(6)).toEqual([1, 5, 10, 10, 5, 1]); |
| 26 | + }); |
| 27 | + |
| 28 | + test.skip('Gets the seventh row of pascal', () => { |
| 29 | + expect(pascal(7)).toEqual([1, 6, 15, 20, 15, 6, 1]); |
| 30 | + }); |
| 31 | +}); |
0 commit comments