Skip to content

Commit

Permalink
Add empty JSON test
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Jun 10, 2020
1 parent d073b53 commit 0facf6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions json/json_test.go
Expand Up @@ -16,6 +16,7 @@ func TestJSON(t *testing.T) {
json string
expected string
}{
{"", ""},
{"{ \"a\": [1, 2] }", "{\"a\":[1,2]}"},
{"[{ \"a\": [{\"x\": null}, true] }]", "[{\"a\":[{\"x\":null},true]}]"},
{"{ \"a\": 1, \"b\": 2 }", "{\"a\":1,\"b\":2}"},
Expand Down

0 comments on commit 0facf6d

Please sign in to comment.