Skip to content

Add ordering and parser compliance cases - #27

Open
GrahamCampbell wants to merge 1 commit into
jmespath:masterfrom
GrahamCampbell:ordering-and-parser-shapes
Open

Add ordering and parser compliance cases#27
GrahamCampbell wants to merge 1 commit into
jmespath:masterfrom
GrahamCampbell:ordering-and-parser-shapes

Conversation

@GrahamCampbell

Copy link
Copy Markdown
Contributor

Adds fixtures for shapes the corpus currently passes by coincidence: sort()/sort_by() numeric ordering (negatives, uneven fraction digit runs, scientific notation), code-point string ordering where natural order differs, max()/min()/max_by()/min_by() over numeric strings, mixed-type *_by keys, and led-position invalid-token syntax errors.

Heads-up: the mixed-key cases currently raise a raw TypeError in jmespath.py, and the numeric sort cases fail on jmespath.js (its sort() string-sorts numbers). The PHP implementation passes these test cases.

Adds fixtures for shapes the corpus currently passes by coincidence:
sort()/sort_by() numeric ordering (negatives, uneven fraction digit
runs, scientific notation), code-point string ordering where natural
order differs, max()/min()/max_by()/min_by() over numeric strings,
mixed-type *_by keys, and led-position invalid-token syntax errors.
Heads-up: the mixed-key cases currently raise a raw TypeError in
jmespath.py, and the numeric sort cases fail on jmespath.js (its
sort() string-sorts numbers).
Sign up for freeto 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.

1 participant

@GrahamCampbell