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 | 13b25df85eb23962b11613a7542fcc592b3fa332 (patch) | |
tree | 3795b31e2f30b687bf4c2825e959e293d1abf0f6 /test | |
parent | 7222bec296a3356a13472454f1f1ff8b208fc881 (diff) | |
download | ruby-13b25df85eb23962b11613a7542fcc592b3fa332.tar.gz ruby-13b25df85eb23962b11613a7542fcc592b3fa332.tar.xz ruby-13b25df85eb23962b11613a7542fcc592b3fa332.zip |
add a test: "y".count("a\\-z") should be 0.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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 5cdacf348..524ab4705 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 |