From 42daf0849190d3720232f7a2a00c1c507a27e2c2 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Thu, 2 Jan 2025 07:23:24 +0700 Subject: [PATCH] Minor change to unit test --- fmt_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fmt_test.go b/fmt_test.go index 09bf6b6..3f3498d 100644 --- a/fmt_test.go +++ b/fmt_test.go @@ -126,6 +126,7 @@ func TestFormatJSON(t *testing.T) { "👀", "🤰", "foo", + "15\u00f8C", }, ";", ) @@ -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)) } }