test/unit/regexp/test_arity.rb in facets-2.1.3 vs test/unit/regexp/test_arity.rb in facets-2.2.0
- old
+ new
@@ -1,35 +1,20 @@
- # _____ _
- # |_ _|__ ___| |_
- # | |/ _ \/ __| __|
- # | | __/\__ \ |
- # |_|\___||___/\__|
- #
- # for lib/facets/regexp/arity.rb
- #
- # Extracted Mon Sep 03 16:23:07 -0700 2007
- # w/ Test Extraction Ratchet
- #
+# Test for lib/facets/regexp/arity
- require 'facets/regexp/arity.rb'
+require 'facets/regexp/arity.rb'
+require 'test/unit'
+class TestRegexpArity < Test::Unit::TestCase
- 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
-
+ 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