Skip to content

Small fixes in xpath test#338

Merged
naitoh merged 1 commit into
ruby:masterfrom
tompng:test_small_fix
Jun 18, 2026
Merged

Small fixes in xpath test#338
naitoh merged 1 commit into
ruby:masterfrom
tompng:test_small_fix

Conversation

@tompng

@tompng tompng commented Jun 18, 2026

Copy link
Copy Markdown
Member

Fix syntax invalid xpath in test.
Found while running xpath tests comparing with nokogiri

Copilot AI review requested due to automatic review settings June 18, 2026 11:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the XPath test suite to avoid invalid XPath expressions discovered during comparison runs against Nokogiri, improving test correctness and reducing false failures.

Changes:

  • Wrap the unimplemented namespace:: axis test with an explicit assert_nothing_raised expectation.
  • Fix an invalid XPath in test_spaces by removing a trailing /.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@naitoh naitoh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@naitoh naitoh merged commit 4413cab into ruby:master Jun 18, 2026
71 of 73 checks passed
@tompng tompng deleted the test_small_fix branch June 18, 2026 16:31
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.

3 participants