Sha256: f671df4894e790cbbaa725b429e424771c84474ddde12840e6317c6e89def516
Contents?: true
Size: 777 Bytes
Versions: 2
Compression:
Stored size: 777 Bytes
Contents
# encoding: UTF-8 # $Id$ require File.expand_path('../test_helper', __FILE__) class TC_XML_Node_XLink < Minitest::Test def setup() xp = XML::Parser.string('<ruby_array xmlns:xlink="http://www.w3.org/1999/xlink/namespace/"><fixnum xlink:type="simple">one</fixnum></ruby_array>') doc = xp.parse assert_instance_of(XML::Document, doc) @root = doc.root assert_instance_of(XML::Node, @root) end def teardown() @root = nil end def test_xml_node_xlink() for elem in @root.find('fixnum') assert_instance_of(XML::Node, elem) assert_instance_of(TrueClass, elem.xlink?) assert_equal("simple", elem.xlink_type_name) assert_equal(XML::Node::XLINK_TYPE_SIMPLE, elem.xlink_type) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-3.1.0-x64-mingw32 | test/test_node_xlink.rb |
libxml-ruby-3.1.0 | test/test_node_xlink.rb |