Sha256: 35cea83ae3e1637b789b7acfefd6174238698e41de2423d6e3af8b0bafc47419
Contents?: true
Size: 354 Bytes
Versions: 12
Compression:
Stored size: 354 Bytes
Contents
# frozen_string_literal: true require 'helper' require 'parse_helper' class TestSourceMap < Minitest::Test include ParseHelper def test_to_hash buf = Parser::Source::Buffer.new("<input>", 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
12 entries across 12 versions & 4 rubygems