Requested changes.

This commit is contained in:
Patrick Jones
2020-10-19 01:40:53 -07:00
parent cdebe8a098
commit ae11242ea6
4 changed files with 5 additions and 5 deletions

View File

@@ -8,8 +8,8 @@ func TestError_Generator(t *testing.T) {
"http:thisIsAPlaceholder",
"The Answer!",
}
output := "got error code " + "42" + " from " + "http:thisIsAPlaceholder" + ": " + "The Answer!"
if got, want := e, output; e.Error() != output {
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)
}
}