diff --git a/exercises/hamming/canonical-data.json b/exercises/hamming/canonical-data.json index 986544cf67..4114bead17 100644 --- a/exercises/hamming/canonical-data.json +++ b/exercises/hamming/canonical-data.json @@ -1,6 +1,6 @@ { "exercise": "hamming", -"version": "2.1.1", +"version": "2.2.0", "comments": [ "Language implementations vary on the issue of unequal length strands.", "A language may elect to simplify this task by only presenting equal", @@ -21,7 +21,7 @@ "expected": 0 }, { - "description": "identical strands", + "description": "single letter identical strands", "property": "distance", "input": { "strand1": "A", @@ -30,97 +30,25 @@ "expected": 0 }, { - "description": "long identical strands", - "property": "distance", - "input": { - "strand1": "GGACTGA", - "strand2": "GGACTGA" - }, - "expected": 0 - }, - { - "description": "complete distance in single nucleotide strands", - "property": "distance", - "input": { - "strand1": "A", - "strand2": "G" - }, - "expected": 1 - }, - { - "description": "complete distance in small strands", - "property": "distance", - "input": { - "strand1": "AG", - "strand2": "CT" - }, - "expected": 2 - }, - { - "description": "small distance in small strands", - "property": "distance", - "input": { - "strand1": "AT", - "strand2": "CT" - }, - "expected": 1 - }, - { - "description": "small distance", + "description": "single letter different strands", "property": "distance", "input": { - "strand1": "GGACG", - "strand2": "GGTCG" + "strand1": "G", + "strand2": "T" }, "expected": 1 }, { - "description": "small distance in long strands", - "property": "distance", - "input": { - "strand1": "ACCAGGG", - "strand2": "ACTATGG" - }, - "expected": 2 - }, - { - "description": "non-unique character in first strand", - "property": "distance", - "input": { - "strand1": "AAG", - "strand2": "AAA" - }, - "expected": 1 - }, - { - "description": "non-unique character in second strand", - "property": "distance", - "input": { - "strand1": "AAA", - "strand2": "AAG" - }, - "expected": 1 - }, - { - "description": "same nucleotides in different positions", - "property": "distance", - "input": { - "strand1": "TAG", - "strand2": "GAT" - }, - "expected": 2 - }, - { - "description": "large distance", + "description": "long identical strands", "property": "distance", "input": { - "strand1": "GATACA", - "strand2": "GCATAA" + "strand1": "GGACTGAAATCTG", + "strand2": "GGACTGAAATCTG" }, - "expected": 4 + "expected": 0 }, { - "description": "large distance in off-by-one strand", + "description": "long different strands", "property": "distance", "input": { "strand1": "GGACGGATTCTG",