Sha256: 4f5cf0953e313bc17c29f4a60f8946a5524b498cc4eb50ea9cd42ceddb7556d2
Contents?: true
Size: 823 Bytes
Versions: 7
Compression:
Stored size: 823 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, }, :excludes => { }, } 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( method == :excludes ? false : true, @syntax.implements?(type, token) ) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems