From ea0ccedbbaac4b333ca486dc1dda138fbdbaa60d Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 28 Jun 2022 00:44:58 +0200 Subject: [PATCH] go(stats/table_test.go): prettify struct printing --- stats/table_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stats/table_test.go b/stats/table_test.go index 1c5aed3..319424e 100644 --- a/stats/table_test.go +++ b/stats/table_test.go @@ -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) } } }