Skip to content

New JSONPointer tests needed #1081

Closed
Closed

Description

@stleary

After #1078 is merged, add these unit tests to document the change:

input before 1078 after 1078
/~01, #/~01 selects key / selects key ~1
/~00, #/~00 selects key ~ selects key ~0
/a~01b selects a/b selects a~1b
/a~00b selects a~b selects a~0b
builder().append("~1") selects / selects ~1
builder().append("~0") selects ~ selects ~0
new JSONPointer(List.of("~1")) selects / selects ~1

Activity

  1. fahadaldajani92 commented on Oct 8, 2026

    @fahadaldajani92
    Contributor

    The current tests already cover the standalone tilde tokens, builders and token lists. Would a small follow-up adding the /a~01b and /a~00b cases still be useful for this issue?

  2. stleary commented on Oct 8, 2026

    @stleary
    OwnerAuthor

    @fahadaldajani92 Prefer a single new test method, with a set of asserts that explicitly include all of the cases in this issue. The test itself helps document the behavior change.

  3. stleary commented on Oct 11, 2026

    @stleary
    OwnerAuthor

    Closing due to fixed in #1088

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions