Sha256: ec546c219a3ef95709fd9cdeef3eacb691162c22ff682ff5440d506a1a2e2d94

Contents?: true

Size: 669 Bytes

Versions: 16

Compression:

Stored size: 669 Bytes

Contents

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

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

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

  tests = {
    :implements => {
      :property => [
        UnicodeProperty::Age_V200
      ].flatten,

      :nonproperty => [
        UnicodeProperty::Age_V200
      ].flatten,
    },
  }

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

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
regexp_parser-0.4.13 test/syntax/ruby/test_2.0.0.rb
regexp_parser-0.4.12 test/syntax/ruby/test_2.0.0.rb
regexp_parser-0.4.11 test/syntax/ruby/test_2.0.0.rb
regexp_parser-0.4.10 test/syntax/ruby/test_2.0.0.rb
regexp_parser-0.4.9 test/syntax/ruby/test_2.0.0.rb
regexp_parser-0.4.8 test/syntax/ruby/test_2.0.0.rb
regexp_parser-0.4.7 test/syntax/ruby/test_2.0.0.rb
regexp_parser-0.4.6 test/syntax/ruby/test_2.0.0.rb
regexp_parser-0.4.5 test/syntax/ruby/test_2.0.0.rb
regexp_parser-0.4.4 test/syntax/ruby/test_2.0.0.rb
regexp_parser-0.4.3 test/syntax/ruby/test_2.0.0.rb
regexp_parser-0.4.2 test/syntax/ruby/test_2.0.0.rb
regexp_parser-0.4.1 test/syntax/ruby/test_2.0.0.rb
regexp_parser-0.4.0 test/syntax/ruby/test_2.0.0.rb
regexp_parser-0.3.6 test/syntax/ruby/test_2.0.0.rb
regexp_parser-0.3.5 test/syntax/ruby/test_2.0.0.rb