go(stats/table_test.go): prettify struct printing
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-06-28 00:44:58 +02:00
parent 5cfe297a09
commit ea0ccedbba
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -18,7 +18,7 @@ func TestMakeTableHdr(t *testing.T) {
got := makeTableHdr("Random Search", "Schwefel", 10, 3000, 30)
if want != got {
t.Errorf("wrong hdr, want: %v, got: %v", want, got)
t.Errorf("wrong hdr, want: %+v, got: %+v", want, got)
}
}
@ -65,7 +65,7 @@ func TestStatsSingleFunc(t *testing.T) {
for i := range want {
if want[i] != got[i] {
t.Errorf("outputs don't match, want: %v, got: %v", want, got)
t.Errorf("outputs don't match, want: %+v, got: %+v", want, got)
}
}
}