Skip to content

Commit

Permalink
hamming: remove redundant test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Dec 1, 2018
1 parent caa1c66 commit 4c453c8
Showing 1 changed file with 10 additions and 82 deletions.
92 changes: 10 additions & 82 deletions exercises/hamming/canonical-data.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -21,7 +21,7 @@
"expected": 0
},
{
"description": "identical strands",
"description": "single letter identical strands",
"property": "distance",
"input": {
"strand1": "A",
Expand All @@ -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",
Expand Down

0 comments on commit 4c453c8

Please sign in to comment.