Sha256: 525a497c84cfd2a48b3991dbd9b5a54db388763f0a4e0a90aafe367b73e1a312
Contents?: true
Size: 693 Bytes
Versions: 2
Compression:
Stored size: 693 Bytes
Contents
require "libxml" require 'test/unit' class TC_XML_Node3 < 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) assert_instance_of(XML::Node, doc.root) @root = doc.root assert_instance_of(XML::Node, @root) end def teardown() @root = nil end def test_xml_node_doc_content() assert_equal 'onetwo', @root.content first = @root.child assert_equal 'one', first.content assert_equal 'two', first.next.content end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-0.6.0 | test/tc_xml_node3.rb |
libxml-ruby-0.6.0-x86-mswin32-60 | test/tc_xml_node3.rb |