Skip to content

Add parsing related unit tests for JSONArray#1484

Open
satindra-r wants to merge 1 commit intoprocessing:mainfrom
satindra-r:JSONArray-tests
Open

Add parsing related unit tests for JSONArray#1484
satindra-r wants to merge 1 commit intoprocessing:mainfrom
satindra-r:JSONArray-tests

Conversation

@satindra-r
Copy link

This PR adds tests to the JSONArray class in core which has some fragile parsing logic.

Solves #1470

Copy link
Collaborator

@catilac catilac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, i've added a comment about some stylistic changes!

Comment on lines +193 to +196
String json = "[\n" +
"null,\n" +
"null\n" +
"]";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just make this one string instead of multiple addition operations?

Comment on lines +204 to +207
String json = "[\n" +
"1,\n" +
"2\n" +
"]";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above, this only makes things more difficult to read

@catilac
Copy link
Collaborator

catilac commented Mar 18, 2026

@satindra-r thank you so much! i've left some feedback, and i'm triggering the tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants