Skip to content

Commit

Permalink
Minor change to unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Jan 2, 2025
1 parent 1e82967 commit 42daf08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fmt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func TestFormatJSON(t *testing.T) {
"👀",
"🤰",
"foo",
"15\u00f8C",
},
";",
)
Expand All @@ -138,7 +139,7 @@ func TestFormatJSON(t *testing.T) {
v := FormatBytes([]byte(s), nil, 0, true, false, 0, 0)
t.Logf("v : %q", v)
if b := []byte(v.String()); !slices.Equal(b, exp) {
t.Errorf("expected: %q, got: %q", string(exp), string(b))
t.Errorf("\nexpected:\n%q\ngot:\n%q", string(exp), string(b))
}
}

Expand Down

0 comments on commit 42daf08

Please # to comment.