Skip to content

test: cover literal tilde tokens in JSONPointer - #1088

Open
fahadaldajani92 wants to merge 1 commit into
stleary:masterfrom
fahadaldajani92:test/jsonpointer-issue-1081
Open

fahadaldajani92 wants to merge 1 commit into
stleary:masterfrom
fahadaldajani92:test/jsonpointer-issue-1081

Conversation

@fahadaldajani92

Copy link
Copy Markdown

Add a single regression test method covering every input in #1081: string and URI-fragment pointers for ~01 and ~00, embedded escapes in a~01b and a~00b, builder tokens ~1 and ~0, and a token-list constructor containing ~1. Distinct values for the literal and formerly selected keys make the expected behavior explicit. Arrays.asList represents the list case while retaining the project's Java 8 compatibility.

Testing: ./gradlew test --tests org.json.junit.JSONPointerTest.escapedTildeTokensSelectLiteralKeys --no-daemon --console plain and ./gradlew clean build test --no-daemon --console plain passed using Temurin 11. The full run reported 814 tests, 0 failures, 0 errors, and 6 skipped. git diff --check passed.

@sonarqubecloud

sonarqubecloud Bot commented Oct 8, 2026

Copy link
Copy Markdown

@fahadaldajani92
fahadaldajani92 marked this pull request as ready for review October 8, 2026 20:06

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants