tracks/go/exercises/hamming/cases_test.go in trackler-2.1.0.0 vs tracks/go/exercises/hamming/cases_test.go in trackler-2.1.0.1
- old
+ new
@@ -1,9 +1,10 @@
package hamming
// Source: exercism/x-common
-// Commit: c84e435 Merge pull request #51 from soniakeys/master
+// Commit: bb56dc7 Fix canonical-data.json formatting
+// x-common version: 1.0.0
var testCases = []struct {
s1 string
s2 string
want int
@@ -50,9 +51,14 @@
},
{ // non-unique character in second strand
"AGG",
"AGA",
1,
+ },
+ { // same nucleotides in different positions
+ "TAG",
+ "GAT",
+ 2,
},
{ // large distance
"GATACA",
"GCATAA",
4,