Sha256: 00306633719df9ee21f8cd5dbfc10d0621c642cddde9ae83927c9bdd2466dbc4

Contents?: true

Size: 729 Bytes

Versions: 12

Compression:

Stored size: 729 Bytes

Contents

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

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

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

  tests = {
    :implements => {
      :property => [
        UnicodeProperty::Script_7_0 + UnicodeProperty::Age_V220
      ].flatten,

      :nonproperty => [
        UnicodeProperty::Script_7_0 + UnicodeProperty::Age_V220
      ].flatten,
    },
  }

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

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
regexp_parser-0.4.9 test/syntax/ruby/test_2.2.0.rb
regexp_parser-0.4.8 test/syntax/ruby/test_2.2.0.rb
regexp_parser-0.4.7 test/syntax/ruby/test_2.2.0.rb
regexp_parser-0.4.6 test/syntax/ruby/test_2.2.0.rb
regexp_parser-0.4.5 test/syntax/ruby/test_2.2.0.rb
regexp_parser-0.4.4 test/syntax/ruby/test_2.2.0.rb
regexp_parser-0.4.3 test/syntax/ruby/test_2.2.0.rb
regexp_parser-0.4.2 test/syntax/ruby/test_2.2.0.rb
regexp_parser-0.4.1 test/syntax/ruby/test_2.2.0.rb
regexp_parser-0.4.0 test/syntax/ruby/test_2.2.0.rb
regexp_parser-0.3.6 test/syntax/ruby/test_2.2.0.rb
regexp_parser-0.3.5 test/syntax/ruby/test_2.2.0.rb