# $Id: tc_xml_xpath.rb,v 1.2 2006/02/21 20:40:16 roscopeco Exp $ require "#{File.dirname(__FILE__)}/../ext/xml/libxml" unless defined?(XML) class TC_XML_XPath < 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) @xpt = doc.find('/ruby_array/fixnum').xpath assert_instance_of(XML::XPath, @xpt) end def teardown() @xpt = nil end def test_libxml_xpath_set() set = @xpt.set assert_instance_of(XML::Node::Set, set) end end # TC_XML_Document