Sha256: dbf0ecd72e9b32e508356ddcab122d52acb2e09eafc45a6b3bb520c61d776cab

Contents?: true

Size: 668 Bytes

Versions: 4

Compression:

Stored size: 668 Bytes

Contents

# $Id: tc_xml_parser5.rb 67 2006-04-17 13:30:22Z roscopeco $
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

4 entries across 4 versions & 1 rubygems

Version Path
libxml-ruby-0.5.0 tests/tc_xml_parser5.rb
libxml-ruby-0.5.0.1 tests/tc_xml_parser5.rb
libxml-ruby-0.5.1.0 tests/tc_xml_parser5.rb
libxml-ruby-0.5.2.0 tests/tc_xml_parser5.rb