From feabaaaa69db02231fc35822e0fdae99715ab7f8 Mon Sep 17 00:00:00 2001 From: Ilya Khadykin Date: Sat, 5 Aug 2017 23:56:33 +0300 Subject: [PATCH 1/2] Updates canonical-data.json to comply with schema --- exercises/hamming/canonical-data.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/hamming/canonical-data.json b/exercises/hamming/canonical-data.json index 373ac58324..344821d9ba 100644 --- a/exercises/hamming/canonical-data.json +++ b/exercises/hamming/canonical-data.json @@ -110,14 +110,14 @@ "property": "distance", "strand1": "AATG", "strand2": "AAA", - "expected": -1 + "expected": {"error": "leftStrand and rightStrand must be of equal length"} }, { "description": "disallow second strand longer", "property": "distance", "strand1": "ATA", "strand2": "AGTG", - "expected": -1 + "expected": {"error": "leftStrand and rightStrand must be of equal length"} } ] } From a2aff5b1fa686c32600891d01af7c34cfa694849 Mon Sep 17 00:00:00 2001 From: Ilya Khadykin Date: Tue, 8 Aug 2017 22:31:14 +0300 Subject: [PATCH 2/2] Fixes version number and expected error message --- exercises/hamming/canonical-data.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exercises/hamming/canonical-data.json b/exercises/hamming/canonical-data.json index 344821d9ba..90fcd0a07a 100644 --- a/exercises/hamming/canonical-data.json +++ b/exercises/hamming/canonical-data.json @@ -1,6 +1,6 @@ { "exercise": "hamming", -"version": "1.1.0", +"version": "2.0.0", "comments": [ "Language implementations vary on the issue of unequal length strands.", "A language may elect to simplify this task by only presenting equal", @@ -110,14 +110,14 @@ "property": "distance", "strand1": "AATG", "strand2": "AAA", - "expected": {"error": "leftStrand and rightStrand must be of equal length"} + "expected": {"error": "left and right strands must be of equal length"} }, { "description": "disallow second strand longer", "property": "distance", "strand1": "ATA", "strand2": "AGTG", - "expected": {"error": "leftStrand and rightStrand must be of equal length"} + "expected": {"error": "left and right strands must be of equal length"} } ] }