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
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.0/test/test_source_map.rb
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/parser-2.4.0.0/test/test_source_map.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/parser-2.4.0.0/test/test_source_map.rb
parser-2.4.0.0 test/test_source_map.rb
parser-2.3.3.1 test/test_source_map.rb
parser-2.3.3.0 test/test_source_map.rb
parser-2.3.2.0 test/test_source_map.rb
parser-2.3.1.4 test/test_source_map.rb
parser-2.3.1.3 test/test_source_map.rb
erruby_parser-2.3.1.2 test/test_source_map.rb
parser-2.3.1.2 test/test_source_map.rb
parser-2.3.1.1 test/test_source_map.rb
parser-2.3.1.0 test/test_source_map.rb
parser-2.3.0.7 test/test_source_map.rb
parser-2.3.0.6 test/test_source_map.rb
parser-2.3.0.5 test/test_source_map.rb
parser-2.3.0.4 test/test_source_map.rb
parser-2.3.0.3 test/test_source_map.rb
parser-2.3.0.2 test/test_source_map.rb
parser-2.3.0.1 test/test_source_map.rb