Sha256: 8e46618f7e4966bbbedf8d9cee65af4c90499df086434a0115dc331a93e35a00

Contents?: true

Size: 625 Bytes

Versions: 10

Compression:

Stored size: 625 Bytes

Contents

  #  _____         _
  # |_   _|__  ___| |_
  #   | |/ _ \/ __| __|
  #   | |  __/\__ \ |
  #   |_|\___||___/\__|
  #
  # for lib/facets/regexp/arity.rb
  #
  # Extracted Mon Sep 03 16:23:07 -0700 2007
  # w/ Test Extraction Ratchet
  #

 require 'facets/regexp/arity.rb'



  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

10 entries across 10 versions & 1 rubygems

Version Path
facets-2.0.0 test/unit/regexp/test_arity.rb
facets-2.0.1 test/unit/regexp/test_arity.rb
facets-2.0.2 test/unit/regexp/test_arity.rb
facets-2.0.3 test/unit/regexp/test_arity.rb
facets-2.0.4 test/unit/regexp/test_arity.rb
facets-2.0.5 test/unit/regexp/test_arity.rb
facets-2.1.0 test/unit/regexp/test_arity.rb
facets-2.1.1 test/unit/regexp/test_arity.rb
facets-2.1.2 test/unit/regexp/test_arity.rb
facets-2.1.3 test/unit/regexp/test_arity.rb