Skip to content

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

Open
escholtz wants to merge 1 commit into
antchfx:masterfrom
escholtz:test-fractional-number-literals
Open

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

Conversation

@escholtz

Copy link
Copy Markdown

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.
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.

1 participant