Skip to content

Commit

Permalink
[Feat] Add more output in test unit
Browse files Browse the repository at this point in the history
  • Loading branch information
CornWorld committed Feb 7, 2024
1 parent cbb0528 commit dc05531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/game/map/map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
})
}
Expand Down

0 comments on commit dc05531

Please sign in to comment.