Sha256: b4647e128b47f177e47fcb997ff7af3d4d1d77209b2c48d2c81cea51462d17dc
Contents?: true
Size: 690 Bytes
Versions: 2
Compression:
Stored size: 690 Bytes
Contents
# $Id: tc_xml_parser5.rb 251 2008-01-22 18:12:00Z transami $ require "libxml" require 'test/unit' class TC_XML_Parser5 < Test::Unit::TestCase def setup() @xp = XML::Parser.new() assert_instance_of(XML::Parser, @xp) s = @xp.string = '<u>a</u>' assert_instance_of(String, s) assert_instance_of(String, @xp.string) assert_equal(s, @xp.string) @doc = @xp.parse assert_instance_of(XML::Document, @doc) end def teardown() @xp = nil @doc = nil end def test_ruby_xml_parser_new() assert_instance_of(XML::Parser, @xp) assert_instance_of(String, @xp.string) assert_instance_of(XML::Document, @doc) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-0.6.0 | test/tc_xml_parser5.rb |
libxml-ruby-0.6.0-x86-mswin32-60 | test/tc_xml_parser5.rb |