# File test/xpath_test.rb, line 70 def each_test( element, xpath, num_children ) count = 0 XPath::each( element, xpath ) { |child| count += 1 yield child if block_given? } assert_equal num_children, count end