Sha256: 6968a6cc404342c6d12dc5e9166a3c979a4ef4620deef40a537f1bdca9be0b96
Contents?: true
Size: 331 Bytes
Versions: 8
Compression:
Stored size: 331 Bytes
Contents
require 'helper' require 'parse_helper' class TestSourceMap < 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
8 entries across 8 versions & 2 rubygems