Skip to content

Add unit tests for substring function edge cases and non-matching inputs - #136

Open
escholtz wants to merge 1 commit into
antchfx:masterfrom
escholtz:test-substring-edge-cases
Open

Add unit tests for substring function edge cases and non-matching inputs#136
escholtz wants to merge 1 commit into
antchfx:masterfrom
escholtz:test-substring-edge-cases

Conversation

@escholtz

Copy link
Copy Markdown

W3C XPath 1.0 §4.2 (https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions) defines substring behaviors for negative start indices, zero lengths, and out-of-range bounds. Add tests covering these cases along with empty/non-matching nodes for substring, substring-before, and substring-after.

W3C XPath 1.0 §4.2 (https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions)
defines substring behaviors for negative start indices, zero lengths, and
out-of-range bounds. Add tests covering these cases along with empty/non-matching
nodes for substring, substring-before, and substring-after.
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