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