Sha256: 4e4dafefc9afa820137713876b01d8ed4fbd56112b75850c202d9360f480d338
Contents?: true
Size: 674 Bytes
Versions: 3
Compression:
Stored size: 674 Bytes
Contents
# $Id: tc_xml_parser5.rb,v 1.3 2006/04/17 13:30:19 roscopeco Exp $ require "libxml_test" 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-0.3.8.2 | tests/tc_xml_parser5.rb |
libxml-ruby-0.3.8 | tests/tc_xml_parser5.rb |
libxml-ruby-0.3.8.4 | tests/tc_xml_parser5.rb |