Run go fmt.

This commit is contained in:
Patrick Jones
2020-10-06 01:18:45 -07:00
parent 7792988ab8
commit 802bddef7c
4 changed files with 23 additions and 24 deletions

View File

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