diff --git a/exercises/binary-search/canonical-data.json b/exercises/binary-search/canonical-data.json index 2c7da3bb6f..ded4d4c6a2 100644 --- a/exercises/binary-search/canonical-data.json +++ b/exercises/binary-search/canonical-data.json @@ -1,8 +1,8 @@ { "exercise": "binary-search", - "version": "1.1.0", + "version": "1.2.0", "comments": [ - "Here -1 is used to indicate that the value is not included in the array.", + "The error object is used to indicate that the value is not included in the array.", "It should be replaced with the respective expression that is idiomatic", "for the language that implements the tests.", @@ -77,7 +77,7 @@ "array": [1, 3, 4, 6, 8, 9, 11], "value": 7 }, - "expected": -1 + "expected": {"error": "value not in array"} }, { "description": "a value smaller than the array's smallest value is not included", @@ -86,7 +86,7 @@ "array": [1, 3, 4, 6, 8, 9, 11], "value": 0 }, - "expected": -1 + "expected": {"error": "value not in array"} }, { "description": "a value larger than the array's largest value is not included", @@ -95,7 +95,7 @@ "array": [1, 3, 4, 6, 8, 9, 11], "value": 13 }, - "expected": -1 + "expected": {"error": "value not in array"} }, { "description": "nothing is included in an empty array", @@ -104,7 +104,7 @@ "array": [], "value": 1 }, - "expected": -1 + "expected": {"error": "value not in array"} } ] }