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

Version Path
passbase-1.3.0 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.4/test/test_source_map.rb
passbase-1.2.0 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.4/test/test_source_map.rb
passbase-1.1.0 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.4/test/test_source_map.rb
passbase-1.0.3 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.4/test/test_source_map.rb
passbase-1.0.2 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.4/test/test_source_map.rb
passbase-1.0.1 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.4/test/test_source_map.rb
passbase-1.0.0 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.4/test/test_source_map.rb
parser-2.7.1.5 test/test_source_map.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/parser-2.7.1.4/test/test_source_map.rb
files.com-1.0.1 vendor/bundle/ruby/2.5.0/gems/parser-2.7.1.4/test/test_source_map.rb
parser-2.7.1.4 test/test_source_map.rb
parser-2.7.1.3 test/test_source_map.rb