|
@@ -121,11 +121,11 @@ func TestParseWords(t *testing.T) {
|
|
|
for _, test := range tests {
|
|
|
words := parseWords(test["input"][0])
|
|
|
if len(words) != len(test["expect"]) {
|
|
|
- t.Fatalf("length check failed. input: %v, expect: %v, output: %v", test["input"][0], test["expect"], words)
|
|
|
+ t.Fatalf("length check failed. input: %v, expect: %q, output: %q", test["input"][0], test["expect"], words)
|
|
|
}
|
|
|
for i, word := range words {
|
|
|
if word != test["expect"][i] {
|
|
|
- t.Fatalf("word check failed for word: %q. input: %v, expect: %v, output: %v", word, test["input"][0], test["expect"], words)
|
|
|
+ t.Fatalf("word check failed for word: %q. input: %q, expect: %q, output: %q", word, test["input"][0], test["expect"], words)
|
|
|
}
|
|
|
}
|
|
|
}
|