Forgot to collate string.

This commit is contained in:
Patrick Jones
2020-10-19 01:43:14 -07:00
parent ae11242ea6
commit 697b08f4c6

View File

@@ -8,7 +8,7 @@ func TestError_Generator(t *testing.T) {
"http:thisIsAPlaceholder",
"The Answer!",
}
want := "got error code " + "42" + " from " + "http:thisIsAPlaceholder" + ": " + "The Answer!"
want := "got error code 42 from http:thisIsAPlaceholder: The Answer!"
if got := e.Error(); got != want {
t.Errorf("Got error message %q; want %q", got, want)
}