mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rexml: Use more debug friendly assertion style
test/rexml/xpath/test_base.rb: Expand loop assertion and stop to checking just the first value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b5321ba446
commit
8257fcb1db
1 changed files with 3 additions and 5 deletions
|
@ -860,11 +860,9 @@ module REXMLTests
|
|||
</a>
|
||||
XML
|
||||
|
||||
for v,p in [[6, "sum(/a/b)"],
|
||||
[9, "sum(//b | //d)"],
|
||||
[3, "sum(/a/e/@*)"] ]
|
||||
assert_equal( v, XPath::match( d, p ).first )
|
||||
end
|
||||
assert_equal([6], XPath::match(d, "sum(/a/b)"))
|
||||
assert_equal([9], XPath::match(d, "sum(//b | //d)"))
|
||||
assert_equal([3], XPath::match(d, "sum(/a/e/@*)"))
|
||||
end
|
||||
|
||||
def test_xpath_namespace
|
||||
|
|
Loading…
Add table
Reference in a new issue