Sha256: 20f14a451b4f3b2e6a85c9b4e5ba35cfe083b02834a7a862b55ea25b9932eaf2
Contents?: true
Size: 729 Bytes
Versions: 11
Compression:
Stored size: 729 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, }, } 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
11 entries across 11 versions & 1 rubygems