Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a non-deterministic test not involving objects
The non-determinism in this case arises because of the interleaving of descendants allowed by RFC 9535 Section 2.5.2.2. Note that there is more non-determinism in the ordering of descendants, but much of this is removed by the applications of the child wildcard ([*]). The list of the input node and its descendants (the result of .. before [*] is applied) can be in any of these orders: [[[[1]],[2]],[[1]],[1],[2],1,2] [[[[1]],[2]],[[1]],[1],[2],2,1] [[[[1]],[2]],[[1]],[1],1,[2],2] [[[[1]],[2]],[[1]],[2],[1],1,2] [[[[1]],[2]],[[1]],[2],[1],2,1] [[[[1]],[2]],[[1]],[2],2,[1],1] Notice that these all satisfy the rules in Section 2.5.2.2: * nodes of any array are visited in array order, and * nodes are visited before their descendants. Ref: https://github.com/glyn/jsonpath-nondeterminism
- Loading branch information