blob: b187bdcaec963d3e92906167d848969924584b38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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
|