1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/rexml] test: compare with real element

https://github.com/ruby/rexml/commit/9f2908de2e
This commit is contained in:
Kouhei Sutou 2019-02-10 05:37:28 +09:00 committed by Hiroshi SHIBATA
parent ee8985ef0e
commit 33e4a59b4a

View file

@ -237,8 +237,11 @@ module REXMLTests
</root>
XML
m = REXML::XPath.match(doc, "//foo[@bar=$n]", nil, { "n" => nil })
assert_equal( 1, m.size )
assert_equal([doc.root.elements[2]],
REXML::XPath.match(doc,
"//foo[@bar=$n]",
nil,
{"n" => nil}))
end
def test_unregistered_method