Sha256: bfc9af6671721f60c9df36cfe7597b03beb4436363df829e5ef13c121b6715c6
Contents?: true
Size: 351 Bytes
Versions: 16
Compression:
Stored size: 351 Bytes
Contents
require 'facets/regexp/arity' require 'test/unit' class TestRegexpArity < Test::Unit::TestCase def test_arity r = /(1)(2)(3)/ assert_equal( 3, r.arity ) r = /(1)(2)(3)(4)/ assert_equal( 4, r.arity ) r = /(1)(2)((a)3)/ assert_equal( 4, r.arity ) r = /(?#nothing)(1)(2)(3)(?=3)/ assert_equal( 3, r.arity ) end end
Version data entries
16 entries across 16 versions & 1 rubygems