1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
# $Id: tc_xml_parser3.rb 67 2006-04-17 13:30:22Z roscopeco $
require "libxml_test"
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
|