Sha256: 13a700471d676cfbe156c3ad720d1ac057c4dd62cfa87e104a133dec9a905a99
Contents?: true
Size: 704 Bytes
Versions: 4
Compression:
Stored size: 704 Bytes
Contents
# $Id: tc_xml_node6.rb 81 2006-05-31 17:26:43Z roscopeco $ require "libxml_test" require 'test/unit' class TC_XML_Node6 < Test::Unit::TestCase def setup() xp = XML::Parser.string('<ruby_array uga="booga" foo="bar"><fixnum>one</fixnum><fixnum>two</fixnum></ruby_array>') doc = xp.parse @root = doc.root assert_equal 'bar', @root['foo'] end def teardown() @root = nil end def test_xml_node_prop_get_str_sym() assert_equal @root['foo'], @root[:foo] assert_equal @root['uga'], @root[:uga] end def test_xml_node_prop_set_str_sym() @root[:foo] = 'boo' @root[:uga] = 'zoo' assert_equal 'boo', @root['foo'] assert_equal 'zoo', @root['uga'] end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-0.5.0 | tests/tc_xml_node6.rb |
libxml-ruby-0.5.0.1 | tests/tc_xml_node6.rb |
libxml-ruby-0.5.1.0 | tests/tc_xml_node6.rb |
libxml-ruby-0.5.2.0 | tests/tc_xml_node6.rb |