From 5929945a70281e6b4d4f863cc303be09cb164c74 Mon Sep 17 00:00:00 2001 From: DagmarTimmreck Date: Wed, 28 Aug 2019 16:59:57 +0200 Subject: [PATCH] Add testcase --- exercises/matrix/matrix.spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/exercises/matrix/matrix.spec.js b/exercises/matrix/matrix.spec.js index be289fde01..fb84d1b7e2 100644 --- a/exercises/matrix/matrix.spec.js +++ b/exercises/matrix/matrix.spec.js @@ -29,6 +29,10 @@ describe('Matrix', () => { expect(new Matrix('1 2 3\n4 5 6\n7 8 9\n8 7 6').columns[2]).toEqual([3, 6, 9, 6]); }); + xtest('can extract column from non-square matrix with more columns than rows', () => { + expect(new Matrix('1 2 3\n4 5 6').columns[2]).toEqual([3, 6]); + }); + xtest('extract column where numbers have different widths', () => { expect(new Matrix('89 1903 3\n18 3 1\n9 4 800').columns[1]).toEqual([1903, 3, 4]); });