2 require 'wsdl/xmlSchema/parser'
8 class TestEmptyCharset < Test::Unit::TestCase
10 @file = File.join(File.dirname(File.expand_path(__FILE__)), 'noencoding.xml')
15 xml = WSDL::XMLSchema::Parser.new.parse(File.open(@file) { |f| f.read })
17 if XSD::XMLParser.const_defined?("REXMLParser")
18 STDERR.puts("rexml cannot handle euc-jp without iconv/uconv.")
23 # unsupported encoding
26 assert_equal(WSDL::XMLSchema::Schema, xml.class)
27 assert_equal(0, xml.collect_elements.size)