summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-01 07:04:28 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-01 07:04:28 +0000
commit4f6c04dc52ba78458bf1263b8ea75dc1440a2fad (patch)
tree3795b31e2f30b687bf4c2825e959e293d1abf0f6
parent1448668244c81cfc720bcdfa93af352a17cc230f (diff)
add a test: "y".count("a\\-z") should be 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_string.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb
index 5cdacf3483..524ab47051 100644
--- a/test/ruby/test_string.rb
+++ b/test/ruby/test_string.rb
@@ -384,6 +384,7 @@ class TestString < Test::Unit::TestCase
assert_equal(2, a.count(S("lo"), S("o")))
assert_equal(4, a.count(S("hello"), S("^l")))
assert_equal(4, a.count(S("ej-m")))
+ assert_equal(0, S("y").count(S("a\\-z")))
end
def test_crypt