Skip to content

Commit 9f2908d

Browse files
committed
test: compare with real element
1 parent 2a53c54 commit 9f2908d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/rexml/test_functions.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,11 @@ def test_string_nil_without_context
237237
</root>
238238
XML
239239

240-
m = REXML::XPath.match(doc, "//foo[@bar=$n]", nil, { "n" => nil })
241-
assert_equal( 1, m.size )
240+
assert_equal([doc.root.elements[2]],
241+
REXML::XPath.match(doc,
242+
"//foo[@bar=$n]",
243+
nil,
244+
{"n" => nil}))
242245
end
243246

244247
def test_unregistered_method

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy