2015-12-16 00:07:31 -05:00
|
|
|
# frozen_string_literal: false
|
2013-02-24 08:10:46 -05:00
|
|
|
require_relative 'rexml_test_utils'
|
2010-09-17 09:14:14 -04:00
|
|
|
require 'rexml/parsers/lightparser'
|
|
|
|
|
2014-05-27 08:07:40 -04:00
|
|
|
module REXMLTests
|
2014-05-27 09:10:55 -04:00
|
|
|
class LightParserTester < Test::Unit::TestCase
|
|
|
|
include REXMLTestUtils
|
|
|
|
include REXML
|
|
|
|
def test_parsing
|
2014-05-27 09:45:04 -04:00
|
|
|
File.open(fixture_path("documentation.xml")) do |f|
|
|
|
|
parser = REXML::Parsers::LightParser.new( f )
|
|
|
|
parser.parse
|
|
|
|
end
|
2014-05-27 09:10:55 -04:00
|
|
|
end
|
2010-09-17 09:46:56 -04:00
|
|
|
end
|
2010-09-17 09:14:14 -04:00
|
|
|
end
|