diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-24 09:20:15 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-25 20:59:23 -0700 |
commit | 3b4ca665fbe89bdf44560454684bb6829070d7f4 (patch) | |
tree | 3a3ccc02a39edad8aa4116890e6070bd18d921ef /internal/jsonparse/parse_test.go | |
parent | 0fa9f8b14f04f4b0099f038cc43e4cef57a155a1 (diff) |
jsonparse: Fix a bug allowing a trailing comma in objects
Diffstat (limited to 'internal/jsonparse/parse_test.go')
-rw-r--r-- | internal/jsonparse/parse_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/jsonparse/parse_test.go b/internal/jsonparse/parse_test.go index acb43e8..fe94c58 100644 --- a/internal/jsonparse/parse_test.go +++ b/internal/jsonparse/parse_test.go @@ -24,17 +24,17 @@ func TestParserHandleRune(t *testing.T) { // st,// processed `?`, `{`, // { - `»"`, // {" - `»"`, // {"x - `»`, // {"x" + `:"`, // {" + `:"`, // {"x + `:`, // {"x" `o?`, // {"x": `o"`, // {"x":" `o"`, // {"x":"y `o`, // {"x":"y" - `{`, // {"x":"y", - `»"`, // {"x":"y"," - `»"`, // {"x":"y","a - `»`, // {"x":"y","a" + `}`, // {"x":"y", + `:"`, // {"x":"y"," + `:"`, // {"x":"y","a + `:`, // {"x":"y","a" `o?`, // {"x":"y","a": `o"`, // {"x":"y","a":" `o"`, // {"x":"y","a":"b |