go(stats/table_test.go): prettify struct printing
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5cfe297a09
commit
ea0ccedbba
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user