# File test/xpath_test.rb, line 357 def test_grouping t = XPath.first( @@doc, "a/d/*[name()='d' and (name()='f' or name()='q')]" ) assert_nil t t = XPath.first( @@doc, "a/d/*[(name()='d' and name()='f') or name()='q']" ) assert_equal 'q', t.name end