Skip to content

Add tests for fractional number literals without leading zero - #135

Merged
zhengchun merged 1 commit into
antchfx:masterfrom
escholtz:test-fractional-number-literals
Sep 11, 2026
Merged

Add tests for fractional number literals without leading zero#135
zhengchun merged 1 commit into
antchfx:masterfrom
escholtz:test-fractional-number-literals

Conversation

@escholtz

Copy link
Copy Markdown
Contributor

Add unit tests verifying that expressions with fractional numbers (e.g. .5, -.5, .125, arithmetic, comparisons, and node predicates) parse and evaluate accurately.

XPath 1.0 §3.7 (https://www.w3.org/TR/1999/REC-xpath-19991116/#exprlex) defines
numeric literals as Digits ('.' Digits?)? | '.' Digits.

Add unit tests verifying that expressions with fractional numbers (e.g. .5,
-.5, .125, arithmetic, comparisons, and node predicates) parse and evaluate
accurately.
@zhengchun
zhengchun merged commit 2b307cf into antchfx:master Sep 11, 2026
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