Sha256: 36068b4897b4f3774ccd59a5aa939ec433b6dc234d27be7de003efea4f59380f

Contents?: true

Size: 280 Bytes

Versions: 4

Compression:

Stored size: 280 Bytes

Contents

covers 'facets/regexp/arity'

testcase Regexp do

  unit :arity do
    r = /(1)(2)(3)/
    r.arity.assert == 3

    r = /(1)(2)(3)(4)/
    r.arity.assert == 4

    r = /(1)(2)((a)3)/
    r.arity.assert == 4

    r = /(?#nothing)(1)(2)(3)(?=3)/
    r.arity.assert == 3
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/regexp/test_arity.rb
facets-2.9.0 test/core/regexp/test_arity.rb
facets-2.9.0.pre.2 test/core/regexp/test_arity.rb
facets-2.9.0.pre.1 test/core/regexp/test_arity.rb