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

Version Path
facets-2.8.4 test/core/regexp/test_arity.rb
facets-2.8.3 test/core/regexp/test_arity.rb
facets-2.8.2 test/core/regexp/test_arity.rb
facets-2.8.1 test/core/regexp/test_arity.rb
facets-2.8.0 test/core/regexp/test_arity.rb
facets-2.7.0 test/core/regexp/test_arity.rb
facets-2.6.0 test/core/regexp/test_arity.rb
facets-2.4.0 test/regexp/test_arity.rb
facets-2.4.1 test/regexp/test_arity.rb
facets-2.4.2 test/core/regexp/test_arity.rb
facets-2.4.4 test/core/regexp/test_arity.rb
facets-2.4.3 test/core/regexp/test_arity.rb
facets-2.4.5 test/core/regexp/test_arity.rb
facets-2.5.1 test/core/regexp/test_arity.rb
facets-2.5.0 test/core/regexp/test_arity.rb
facets-2.5.2 test/core/regexp/test_arity.rb