aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-05 04:06:08 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-05 04:06:08 +0000
commitcbc22bf9bd0a84d00c76da72052a42e99a3e5d6e (patch)
treeccf26eb17486d76353e70ecc2f1c1a808f1fecd8 /test
parent71976790ec02f88d9fb51fab151312124f6df223 (diff)
downloadruby-cbc22bf9bd0a84d00c76da72052a42e99a3e5d6e.tar.gz
added an assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_regexp.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
index dbfe4d7aeb..24ac731d8e 100644
--- a/test/ruby/test_regexp.rb
+++ b/test/ruby/test_regexp.rb
@@ -24,4 +24,8 @@ class TestRegexp < Test::Unit::TestCase
Regexp.new(s, nil, "u")
end
end
+
+ def test_ruby_dev_31309
+ assert_equal('Ruby', 'Ruby'.sub(/[^a-z]/i, '-'))
+ end
end