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

Version Path
parser-2.3.0.0 test/test_source_map.rb
parser-2.3.0.pre.6 test/test_source_map.rb
parser-2.3.0.pre.5 test/test_source_map.rb
parser-2.3.0.pre.4 test/test_source_map.rb
parser-2.3.0.pre.3 test/test_source_map.rb
parser-2.2.3.0 test/test_source_map.rb
parser-2.2.2.6 test/test_source_map.rb
parser-2.3.0.pre.2 test/test_source_map.rb
parser-2.3.0.pre.1 test/test_source_map.rb
parser-2.2.2.5 test/test_source_map.rb
parser-2.2.2.3 test/test_source_map.rb