tests/tc_xml_xpointer.rb in libxml-ruby-0.3.6 vs tests/tc_xml_xpointer.rb in libxml-ruby-0.3.8

- old
+ new

@@ -1,6 +1,7 @@ -# $Id: tc_xml_xpointer.rb,v 1.2 2006/02/21 20:40:16 roscopeco Exp $ -require "#{File.dirname(__FILE__)}/../ext/xml/libxml" unless defined?(XML) +# $Id: tc_xml_xpointer.rb,v 1.3 2006/04/17 13:30:19 roscopeco Exp $ +require "libxml_test" +require "test/unit" class TC_XML_XPointer < Test::Unit::TestCase def setup() xp = XML::Parser.new() str = '<!DOCTYPE ra [<!ELEMENT ra (foo+)><!ATTLIST ra id ID #IMPLIED><!ELEMENT foo (#PCDATA)><!ATTLIST foo id ID #IMPLIED>]><ra id="start"><foo id="one">one</foo><foo id="two">two</foo><foo id="three">three</foo></ra>'