Sha256: 8c3a6e56c722d116b2d07fa68a50387a76379bb76072d253f00a8b0ae60f23f6

Contents?: true

Size: 724 Bytes

Versions: 9

Compression:

Stored size: 724 Bytes

Contents

require File.expand_path("../../../helpers", __FILE__)

class TestSyntaxV2_2_0 < Test::Unit::TestCase
  include Regexp::Syntax::Token

  def setup
    @syntax = Regexp::Syntax.new 'ruby/2.2.0'
  end

  tests = {
    implements: {
      property: [
        UnicodeProperty::Script_V2_2_0 + UnicodeProperty::Age_V2_2_0
      ].flatten,

      nonproperty: [
        UnicodeProperty::Script_V2_2_0 + UnicodeProperty::Age_V2_2_0
      ].flatten,
    },
  }

  tests.each do |method, types|
    types.each do |type, tokens|
      tokens.each do |token|
        define_method "test_syntax_V2_2_0_#{method}_#{type}_#{token}" do
          assert_equal true, @syntax.implements?(type, token)
        end
      end
    end
  end

end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
tdiary-5.0.13 vendor/bundle/gems/regexp_parser-1.3.0/test/syntax/versions/test_2.2.0.rb
regexp_parser-1.4.0 test/syntax/versions/test_2.2.0.rb
tdiary-5.0.12.1 vendor/bundle/gems/regexp_parser-1.3.0/test/syntax/versions/test_2.2.0.rb
tdiary-5.0.11 vendor/bundle/gems/regexp_parser-1.3.0/test/syntax/versions/test_2.2.0.rb
regexp_parser-1.3.0 test/syntax/versions/test_2.2.0.rb
regexp_parser-1.2.0 test/syntax/versions/test_2.2.0.rb
regexp_parser-1.1.0 test/syntax/versions/test_2.2.0.rb
regexp_parser-1.0.0 test/syntax/versions/test_2.2.0.rb
regexp_parser-0.5.0 test/syntax/versions/test_2.2.0.rb