@ -0,0 +1,3 @@
one "" three
"" five ""
seven
@ -131,9 +131,7 @@ func (t *Tokenizer) Scan() bool {
end:
if t.err == nil || t.err == io.EOF {
if b.Len() > 0 {
t.text = b.String()
}
return t.err == nil
@ -29,6 +29,12 @@ func TestQuotesMultiline(t *testing.T) {
)
func TestQuotesEmpty(t *testing.T) {
runTest(t, "quotes-empty",
`[["one","","three"],["","five",""],["seven"]]`,
func TestComments(t *testing.T) {
runTest(t, "comments",
`[[],["one"],[],["two"],[],["three"]]`,