mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
15 lines
423 B
Ruby
15 lines
423 B
Ruby
require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
|
|
|
|
module Racc
|
|
class TestGrammarFileParser < TestCase
|
|
def test_parse
|
|
file = File.join(ASSET_DIR, 'yyerr.y')
|
|
|
|
debug_flags = Racc::DebugFlags.parse_option_string('o')
|
|
assert debug_flags.status_logging
|
|
|
|
parser = Racc::GrammarFileParser.new(debug_flags)
|
|
parser.parse(File.read(file), File.basename(file))
|
|
end
|
|
end
|
|
end
|