diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-25 20:59:32 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-25 20:59:32 -0700 |
commit | 108100f782ab96dc0e68cfbcbc7595c7c04f313c (patch) | |
tree | 3a3ccc02a39edad8aa4116890e6070bd18d921ef /compat/json/compat_test.go | |
parent | 0fa9f8b14f04f4b0099f038cc43e4cef57a155a1 (diff) | |
parent | 3b4ca665fbe89bdf44560454684bb6829070d7f4 (diff) |
Merge branch 'lukeshu/syntax'
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 3de48f7..af92093 100644 --- a/compat/json/compat_test.go +++ b/compat/json/compat_test.go @@ -196,6 +196,7 @@ func TestCompatUnmarshal(t *testing.T) { "syntax-01": {In: `{}x`, ExpErr: `invalid character 'x' after top-level value`}, "syntax-02": {In: `x`, ExpErr: `invalid character 'x' looking for beginning of value`}, "syntax-03": {In: `{x`, ExpErr: `invalid character 'x' looking for beginning of object key string`}, + "syntax-18": {In: `{"":0,}`, ExpErr: `invalid character '}' looking for beginning of object key string`}, "syntax-04": {In: `{""x`, ExpErr: `invalid character 'x' after object key`}, "syntax-05": {In: `{"":0x`, ExpErr: `invalid character 'x' after object key:value pair`}, "syntax-06": {In: `[0x`, ExpErr: `invalid character 'x' after array element`}, |