Sha256: c361f8ed99a6b32095bd90abb834506db09f2b0b91d6b0ded50e782328799279
Contents?: true
Size: 335 Bytes
Versions: 31
Compression:
Stored size: 335 Bytes
Contents
require 'helper' require 'parse_helper' class TestSourceComment < Minitest::Test include ParseHelper def test_to_hash buf = Parser::Source::Buffer.new("<input>") buf.source = "1" ast = parser_for_ruby_version('1.8').parse(buf) assert_equal [:expression, :operator], ast.loc.to_hash.keys.sort_by(&:to_s) end end
Version data entries
31 entries across 31 versions & 4 rubygems