X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=blobdiff_plain;f=testutil%2Ftestutil.go;h=1722fd5242132fd463ad856fa7078789d150d3c7;hp=a2e83f14e421a623044ed61813f84f36b2570caa;hb=184dff6d9bd322819d25e4dfdf0a69f2a163974b;hpb=e0d1ceb383e5672de1a414f192eb2849a1887934 diff --git a/testutil/testutil.go b/testutil/testutil.go index a2e83f1..1722fd5 100644 --- a/testutil/testutil.go +++ b/testutil/testutil.go @@ -37,8 +37,8 @@ func AssertErrorEqual(t *testing.T, name string, act, exp error) { t.Helper() // Ugly but the simplest way to compare errors (including nil) - actStr := fmt.Sprintf("%s", act) - expStr := fmt.Sprintf("%s", exp) + actStr := fmt.Sprintf("%v", act) + expStr := fmt.Sprintf("%v", exp) if actStr != expStr { t.Errorf("err = %s (%#v), want %s (%#v)", actStr, act, expStr, exp)