Sha256: a95827429160e7d4d4dd6ff1ec2b13eeb4774e76cc7f510744776196f7ec46f4
Contents?: true
Size: 717 Bytes
Versions: 1
Compression:
Stored size: 717 Bytes
Contents
# $Id: tc_xml_node_set.rb,v 1.2 2006/02/21 20:40:16 roscopeco Exp $ require "#{File.dirname(__FILE__)}/../ext/xml/libxml" unless defined?(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') 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-0.3.6 | tests/tc_xml_node_set.rb |