# $Id: tc_xml_node_set.rb,v 1.5 2003/02/06 00:22:57 sean Exp $ class TC_XML_Node_Set < Test::Unit::TestCase def setup() xp = XML::Parser.new() str = 'onetwo' assert_equal(str, xp.string = str) doc = xp.parse assert_instance_of(XML::Document, doc) @set = doc.find('/ruby_array/fixnum') assert_instance_of(XML::Node::Set, @set) end def teardown() @set = nil end def test_libxml_nodeset_each() @set.each do |n| assert_instance_of(XML::Node, n) end end end # TC_XML_Document