Skip to content

Commit eb6c32b

Browse files
authored
Hamming: remove tests that don't make sense per 1761 (#1762)
* Hamming: remove tests that dont make sense * return tests & normalise error messages
1 parent bb38e15 commit eb6c32b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

exercises/hamming/canonical-data.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,18 @@
9090
},
9191
"expected": {"error": "left strand must not be empty"}
9292
},
93+
{
94+
"uuid": "db92e77e-7c72-499d-8fe6-9354d2bfd504",
95+
"description": "disallow left empty strand",
96+
"comments": ["Normalises error messages"],
97+
"reimplements": "5dce058b-28d4-4ca7-aa64-adfe4e17784c",
98+
"property": "distance",
99+
"input": {
100+
"strand1": "",
101+
"strand2": "G"
102+
},
103+
"expected": {"error": "left and right strands must be of equal length"}
104+
},
93105
{
94106
"uuid": "38826d4b-16fb-4639-ac3e-ba027dec8b5f",
95107
"description": "disallow right empty strand",
@@ -99,6 +111,18 @@
99111
"strand2": ""
100112
},
101113
"expected": {"error": "right strand must not be empty"}
114+
},
115+
{
116+
"uuid": "920cd6e3-18f4-4143-b6b8-74270bb8f8a3",
117+
"description": "disallow right empty strand",
118+
"comments": ["Normalises error messages"],
119+
"reimplements": "38826d4b-16fb-4639-ac3e-ba027dec8b5f",
120+
"property": "distance",
121+
"input": {
122+
"strand1": "G",
123+
"strand2": ""
124+
},
125+
"expected": {"error": "left and right strands must be of equal length"}
102126
}
103127
]
104128
}

0 commit comments

Comments
 (0)