diff --git a/js2/__tests__/3.js b/js2/__tests__/3.js index 456b6881..1dc34675 100644 --- a/js2/__tests__/3.js +++ b/js2/__tests__/3.js @@ -19,4 +19,8 @@ describe('Generate 2D array', () => { const result = solution(1, 5) expect(result).toEqual([[0, 0, 0, 0, 0]]) }) + it('should generate 3x0 array', () => { + const result = solution(3, 0) + expect(result).toEqual([0],[0],[0]) + }) })