Sha256: 84bfaf28551a71db9fbb556927e9207205f23e4255a9dfe25136a0628a045c7b

Contents?: true

Size: 842 Bytes

Versions: 39

Compression:

Stored size: 842 Bytes

Contents

# frozen_string_literal: true

require 'helper'
require 'parser/current'

class TestCurrent < Minitest::Test
  def test_current
    case RUBY_VERSION
    when '2.0.0'
      assert_equal Parser::Ruby20, Parser::CurrentRuby
    when /^2\.1\.\d+/
      assert_equal Parser::Ruby21, Parser::CurrentRuby
    when /^2\.2\.\d+/
      assert_equal Parser::Ruby22, Parser::CurrentRuby
    when /^2\.3\.\d+/
      assert_equal Parser::Ruby23, Parser::CurrentRuby
    when /^2\.4\.\d+/
      assert_equal Parser::Ruby24, Parser::CurrentRuby
    when /^2\.5\.\d+/
      assert_equal Parser::Ruby25, Parser::CurrentRuby
    when /^2\.6\.\d+/
      assert_equal Parser::Ruby26, Parser::CurrentRuby
    when /^2\.7\.\d+/
      assert_equal Parser::Ruby27, Parser::CurrentRuby
    else
      flunk "Update test_current for #{RUBY_VERSION}"
    end
  end
end

Version data entries

39 entries across 28 versions & 5 rubygems

Version Path
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/parser-2.7.0.2/test/test_current.rb
parser-2.7.1.1 test/test_current.rb
talon_one-2.0.0 vendor/bundle/ruby/2.7.0/gems/parser-2.7.1.0/test/test_current.rb
talon_one-2.0.0 vendor/bundle/ruby/2.3.0/gems/parser-2.7.1.0/test/test_current.rb
parser-2.7.1.0 test/test_current.rb
parser-2.7.0.5 test/test_current.rb
parser-2.7.0.4 test/test_current.rb
parser-2.7.0.3 test/test_current.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/parser-2.7.0.2/test/test_current.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.6.0/gems/parser-2.7.0.2/test/test_current.rb
parser-2.7.0.2 test/test_current.rb
parser-2.7.0.1 test/test_current.rb
parser-2.7.0.0 test/test_current.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/parser-2.6.3.0/test/test_current.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_current.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/parser-2.6.5.0/test/test_current.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/parser-2.6.5.0/test/test_current.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/parser-2.6.3.0/test/test_current.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_current.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_current.rb