# File test/elements.rb, line 77 def test_elements_to_a doc = Document.new '<a>sean<b/>elliott<c/></a>' assert_equals 2, doc.root.elements.to_a.size assert_equals 2, doc.root.elements.to_a("child::node()").size assert_equals 4, XPath.match(doc.root, "child::node()").size end