Sha256: b851b529c81b73425e7be5f67707926a86661cdb1600cef1059c741d62ef4455
Contents?: true
Size: 876 Bytes
Versions: 2
Compression:
Stored size: 876 Bytes
Contents
require File.expand_path('../test_helper.rb', File.dirname(__FILE__)) require 'pt_testcase' class TestParser < RipperRubyParser::Parser def process input parse input end end SKIPPED_TESTS = ["dstr_heredoc_windoze_sucks"].freeze class RubyParserTestCase < ParseTreeTestCase def self.previous _key "Ruby" end def self.generate_test klass, node, data, input_name, output_name if data['Ruby'].is_a? Array klass.send :define_method, "test_#{node}" do skip "Not a parser test" end return end if SKIPPED_TESTS.include? node klass.send :define_method, "test_#{node}" do skip "Can't or won't fix this difference" end return end output_name = "ParseTree" super end end class TestRuby19Parser < RubyParserTestCase def setup super self.processor = TestParser.new end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ripper_ruby_parser-1.1.1 | test/pt_testcase/pt_test.rb |
ripper_ruby_parser-1.1.0 | test/pt_testcase/pt_test.rb |