Sha256: 78ff3db9048ce6e4cf4524622504232af3e28e939fa773d7458d1fffb19ff5a0

Contents?: true

Size: 562 Bytes

Versions: 2

Compression:

Stored size: 562 Bytes

Contents

# $Id: tc_xml_parser3.rb 251 2008-01-22 18:12:00Z transami $
require "libxml"
require 'test/unit'

class TC_XML_Parser3 < 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)
  end

  def teardown()
    @xp = nil
  end

  def test_ruby_xml_parser_new()
    assert_instance_of(XML::Parser, @xp)
    assert_instance_of(String, @xp.string)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
libxml-ruby-0.6.0 test/tc_xml_parser3.rb
libxml-ruby-0.6.0-x86-mswin32-60 test/tc_xml_parser3.rb