Sha256: 94d65614c479150dcab20b375bd32362d152b07f8f7ee4274ca5675eb67eaf74

Contents?: true

Size: 731 Bytes

Versions: 4

Compression:

Stored size: 731 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_V193 + UnicodeProperty::Age_V193
      ].flatten,

      :nonproperty => [
        UnicodeProperty::Script_V193 + 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

4 entries across 4 versions & 1 rubygems

Version Path
regexp_parser-0.4.13 test/syntax/ruby/test_1.9.3.rb
regexp_parser-0.4.12 test/syntax/ruby/test_1.9.3.rb
regexp_parser-0.4.11 test/syntax/ruby/test_1.9.3.rb
regexp_parser-0.4.10 test/syntax/ruby/test_1.9.3.rb