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

Version Path
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_source_map.rb
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_source_map.rb
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.2/test/test_source_map.rb
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.2/test/test_source_map.rb
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.2/test/test_source_map.rb
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.2/test/test_source_map.rb
parser-2.4.0.2 test/test_source_map.rb
parser-2.4.0.1 test/test_source_map.rb