aboutsummaryrefslogtreecommitdiffstats
path: root/test/racc/test_grammar_file_parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/racc/test_grammar_file_parser.rb')
-rw-r--r--test/racc/test_grammar_file_parser.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/racc/test_grammar_file_parser.rb b/test/racc/test_grammar_file_parser.rb
new file mode 100644
index 0000000000..b187bdcaec
--- /dev/null
+++ b/test/racc/test_grammar_file_parser.rb
@@ -0,0 +1,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