Sha256: e83343c8f818edaa747360a93c9d95acb9482914d963c3cb61f5a1eae8eb76fd
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
# $Id: tc_xml_parser3.rb,v 1.2 2006/02/21 20:40:16 roscopeco Exp $ require "#{File.dirname(__FILE__)}/../ext/xml/libxml" unless defined?(XML) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-0.3.6 | tests/tc_xml_parser3.rb |