Hi,
I have 4 of 5 tests for parsing invalid Json that fail,
for the one that passes there is a similar test in [me.doubledutch.lazyjson.BadJSONDataTest]:
testParseInvalid_Object_multipleRootCommaSeparated()
PARSE: {"a1":1},{"a2":2}
NullPointerException
testParseInvalid_Object_multipleRoot()
PARSE: {"a1":1}{"a2":2}
NullPointerException
testPropsNoComma()
PARSE: {"a":3 "b" : 4}
PARSED LazyObject.toString: {"a":3 "b" : 4}
testPropsExtraCommaAtBegin()
PARSE: {, "a":3, "b" : 4}
PARSED LazyObject.toString: {, "a":3, "b" : 4}
testPropsExtraCommaAtEnd()
PARSE: {"a":3, "b" : 4, }
OK FAILS AS EXPECTED: Unexpected comma without another value
`
The tests are part of a suite of 123 tests I am running on many parsers.
I attach a Junit 3.8.1 test case.
TestLazyJsonBadDataIssues.java.txt
Greetings,
Michele Vivoda
Hi,
I have 4 of 5 tests for parsing invalid Json that fail,
for the one that passes there is a similar test in [me.doubledutch.lazyjson.BadJSONDataTest]:
`
The tests are part of a suite of 123 tests I am running on many parsers.
I attach a Junit 3.8.1 test case.
TestLazyJsonBadDataIssues.java.txt
Greetings,
Michele Vivoda