Sha256: 20f14a451b4f3b2e6a85c9b4e5ba35cfe083b02834a7a862b55ea25b9932eaf2

Contents?: true

Size: 729 Bytes

Versions: 11

Compression:

Stored size: 729 Bytes

Contents

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

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

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

  tests = {
    :implements => {
      :property => [
        UnicodeProperty::Script_6_0 + UnicodeProperty::Age_V193
      ].flatten,

      :nonproperty => [
        UnicodeProperty::Script_6_0 + UnicodeProperty::Age_V193
      ].flatten,
    },
  }

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

end

Version data entries

11 entries across 11 versions & 1 rubygems

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