diff options
Diffstat (limited to 'compat/json/compat_test.go')
-rw-r--r-- | compat/json/compat_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compat/json/compat_test.go b/compat/json/compat_test.go index af92093..52ed60e 100644 --- a/compat/json/compat_test.go +++ b/compat/json/compat_test.go @@ -154,6 +154,7 @@ func TestCompatMarshal(t *testing.T) { "non-utf8": {In: "\x85\xcd", Out: "\"\\ufffd\\ufffd\""}, "urc": {In: "\ufffd", Out: "\"\ufffd\""}, "float": {In: 1.2e3, Out: `1200`}, + "obj": {In: map[string]any{"": 1, " ": 2}, Out: `{"":1," ":2}`}, } for tcName, tc := range testcases { tc := tc |