Sha256: 99343769bd8f186535ed361377afca56cd4902840ddf73787455fd5813ab182e
Contents?: true
Size: 612 Bytes
Versions: 4
Compression:
Stored size: 612 Bytes
Contents
require "xml" require 'test/unit' class TC_XML_Node_Set < Test::Unit::TestCase def setup() xp = XML::Parser.new() str = '<ruby_array uga="booga" foo="bar"><fixnum>one</fixnum><fixnum>two</fixnum></ruby_array>' assert_equal(str, xp.string = str) doc = xp.parse assert_instance_of(XML::Document, doc) @set = doc.find('/ruby_array/fixnum').set 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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-0.8.2 | test/tc_node_set.rb |
libxml-ruby-0.8.2-x86-mswin32-60 | test/tc_node_set.rb |
libxml-ruby-0.8.3 | test/tc_node_set.rb |
libxml-ruby-0.8.3-x86-mswin32-60 | test/tc_node_set.rb |