diff --git a/exercises/saddle-points/canonical-data.json b/exercises/saddle-points/canonical-data.json index 8ee9a8a1d8..dc965d0bd4 100644 --- a/exercises/saddle-points/canonical-data.json +++ b/exercises/saddle-points/canonical-data.json @@ -1,6 +1,6 @@ { "exercise": "saddle-points", - "version": "1.1.0", + "version": "1.2.0", "comments": [ "Matrix rows and columns are 0-indexed." ], @@ -48,7 +48,7 @@ "expected": [] }, { - "description": "Can identify multiple saddle points", + "description": "Can identify multiple saddle points in a column", "property": "saddlePoints", "input": { "matrix": [ @@ -72,6 +72,31 @@ } ] }, + { + "description": "Can identify multiple saddle points in a row", + "property": "saddlePoints", + "input": { + "matrix": [ + [6, 7, 8], + [5, 5, 5], + [7, 5, 6] + ] + }, + "expected": [ + { + "row": 1, + "column": 0 + }, + { + "row": 1, + "column": 1 + }, + { + "row": 1, + "column": 2 + } + ] + }, { "description": "Can identify saddle point in bottom right corner", "comments": [