Skip to content

Commit

Permalink
Matrix: sync with problem-specifications (#720)
Browse files Browse the repository at this point in the history
* Add testcase

* Matrix: Sync with problem-decriptions
  • Loading branch information
DagmarTimmreck authored and SleeplessByte committed Sep 3, 2019
1 parent ca46c4b commit 041ac55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exercises/matrix/matrix.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ describe('Matrix', () => {
expect(new Matrix('1 2\n10 20').rows[1]).toEqual([10, 20]);
});

xtest('can extract row from non-square matrix', () => {
expect(new Matrix('1 2 3\n4 5 6\n7 8 9\n8 7 6').rows[2]).toEqual([7, 8, 9]);
xtest('can extract row from non-square matrix with no corresponding column', () => {
expect(new Matrix('1 2 3\n4 5 6\n7 8 9\n8 7 6').rows[3]).toEqual([8, 7, 6]);
});

xtest('extract column from one number matrix', () => {
Expand All @@ -25,8 +25,8 @@ describe('Matrix', () => {
expect(new Matrix('1 2 3\n4 5 6\n7 8 9').columns[2]).toEqual([3, 6, 9]);
});

xtest('can extract column from non-square 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 no corresponding row', () => {
expect(new Matrix('1 2 3 4\n5 6 7 8\n9 8 7 6').columns[3]).toEqual([4, 8, 6]);
});

xtest('can extract column from non-square matrix with more columns than rows', () => {
Expand Down

0 comments on commit 041ac55

Please sign in to comment.