Sha256: 2ffd58c36d55c0917c174f4b84aa9b77afc5cfb8729b7acd82142d8ae9e2b929

Contents?: true

Size: 594 Bytes

Versions: 1

Compression:

Stored size: 594 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/regexp/arity.rb
#
# Extracted Wed Jan 25 11:25:39 EST 2006
# Unit Tools Reap Test Extractor
#

require 'facet/regexp/arity.rb'


  require 'test/unit'

  class TCRegexp < 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

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.0.3 packages/core/test/lib/facet/regexp/test_arity.rb