diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-01 07:04:28 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-01 07:04:28 +0000 |
commit | 4f6c04dc52ba78458bf1263b8ea75dc1440a2fad (patch) | |
tree | 3795b31e2f30b687bf4c2825e959e293d1abf0f6 /test/ruby | |
parent | 1448668244c81cfc720bcdfa93af352a17cc230f (diff) | |
download | ruby-4f6c04dc52ba78458bf1263b8ea75dc1440a2fad.tar.gz |
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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_string.rb | 1 |
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 |