Skip to content

4 failing tests about parsing invalid Json #26

@eleumik

Description

@eleumik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions