Skip to content

Commit

Permalink
Matrix: Add symmetric test cases for non-square matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
DagmarTimmreck committed Aug 29, 2019
1 parent 1298f9b commit 577ba69
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions exercises/matrix/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
"expected": [10, 20]
},
{
"description": "can extract row from non-square matrix",
"description": "can extract row from non-square matrix with no corresponding column",
"property": "row",
"input": {
"string": "1 2 3\n4 5 6\n7 8 9\n8 7 6",
"index": 3
"index": 4
},
"expected": [7, 8, 9]
"expected": [8, 7, 6]
},
{
"description": "extract column from one number matrix",
Expand All @@ -57,22 +57,13 @@
"expected": [3, 6, 9]
},
{
"description": "can extract column from non-square matrix",
"description": "can extract column from non-square matrix with no corresponding row",
"property": "column",
"input": {
"string": "1 2 3\n4 5 6\n7 8 9\n8 7 6",
"index": 3
},
"expected": [3, 6, 9, 6]
},
{
"description": "can extract column from non-square matrix with more columns than rows",
"property": "column",
"input": {
"string": "1 2 3\n4 5 6",
"index": 3
"string": "1 2 3 4\n 5 6 7 8\n 9 8 7 6",
"index": 4
},
"expected": [3, 6]
"expected": [4, 8, 6]
},
{
"description": "extract column where numbers have different widths",
Expand Down

0 comments on commit 577ba69

Please sign in to comment.