Skip to content

Commit

Permalink
Add additional unit test with empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
aw committed Oct 22, 2019
1 parent 403eb7b commit 24d2cfb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_regressions.l
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@
[de test-gh-issue-19 ()
(assert-equal '(("myarray" T) ("test" . 12345))
(json-decode "{\"myarray\":[\"\"],\"test\":12345}")
"Regression test GH issue #19 - Unable to parse empty arrays with quotes" ) ]
"Regression test GH issue #19 - Unable to parse empty arrays with quotes (1)" )
(assert-equal '(("myarray" T) ("test" . 12345))
(json-decode "{\"myarray\":[],\"test\":12345}")
"Regression test GH issue #19 - Unable to parse empty arrays with quotes (2)" ) ]

[execute
'(test-gh-issue-4)
Expand Down

0 comments on commit 24d2cfb

Please sign in to comment.