From 700cde1d88fddd6ff439dc8ae6e68006b8e5fb12 Mon Sep 17 00:00:00 2001 From: tompng Date: Thu, 18 Jun 2026 19:34:34 +0900 Subject: [PATCH] Small fixes in xpath test --- test/xpath/test_base.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/xpath/test_base.rb b/test/xpath/test_base.rb index 6fa31fa2..911fda12 100644 --- a/test/xpath/test_base.rb +++ b/test/xpath/test_base.rb @@ -251,7 +251,9 @@ def test_axe_parent def test_axe_namespace_no_error $VERBOSE, verbose = nil, $VERBOSE # Although namespace axis is not implemented yet, it should not raise NoMethodError - XPath.match(@@doc, "a/d/c/namespace::*") + assert_nothing_raised do + XPath.match(@@doc, "a/d/c/namespace::*") + end ensure $VERBOSE = verbose end @@ -883,7 +885,7 @@ def test_spaces assert_equal(["", ""], match.call(' / a / c [ ( @id ) ] ')) assert_equal(["", ""], - match.call('/ a / child:: c [( @id )] /')) + match.call('/ a / child:: c [( @id )]')) end def test_space_paren_brace_inside_xpath_string