From dc0553116a2e1828e6ec3a7742032c201b557c95 Mon Sep 17 00:00:00 2001 From: CornWorld Date: Wed, 7 Feb 2024 19:34:00 +0800 Subject: [PATCH] [Feat] Add more output in test unit --- packages/server/game/map/map_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/game/map/map_test.go b/packages/server/game/map/map_test.go index bb71ed0..0433b20 100644 --- a/packages/server/game/map/map_test.go +++ b/packages/server/game/map/map_test.go @@ -97,7 +97,7 @@ func TestConvJsonStrMap(t *testing.T) { j1 = JsonStrToMap(got) j2 = JsonStrToMap(tt.args.jsonStr) if !reflect.DeepEqual(j1, j2) { - t.Errorf("MapToJsonStr() = \n%s, want \n%s", spew.Sdump(j1), spew.Sdump(j2)) + t.Errorf("MapToJsonStr() = \n%s, want \n%s\nStr: \n%s", spew.Sdump(j1), spew.Sdump(j2), spew.Sdump(got)) } }) }