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