Sha256: 450616077cb15f31e8403b74d354dacda8c08e377f63d17b45f0e35eaee536de
Contents?: true
Size: 724 Bytes
Versions: 9
Compression:
Stored size: 724 Bytes
Contents
require File.expand_path("../../../helpers", __FILE__) class TestSyntaxV1_9_3 < Test::Unit::TestCase include Regexp::Syntax::Token def setup @syntax = Regexp::Syntax.new 'ruby/1.9.3' end tests = { implements: { property: [ UnicodeProperty::Script_V1_9_3 + UnicodeProperty::Age_V1_9_3 ].flatten, nonproperty: [ UnicodeProperty::Script_V1_9_3 + UnicodeProperty::Age_V1_9_3 ].flatten, }, } tests.each do |method, types| types.each do |type, tokens| tokens.each do |token| define_method "test_syntax_V1_9_3_#{method}_#{type}_#{token}" do assert_equal true, @syntax.implements?(type, token) end end end end end
Version data entries
9 entries across 9 versions & 2 rubygems