diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-01 05:36:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-01 05:36:39 +0000 |
commit | 417ea3a3c37395c49df9bc8bed21d3627736c288 (patch) | |
tree | 4b65734d0b3145d1de838a6ecc53c0464cdcb04c /test/ruby/test_string.rb | |
parent | d264d3cc38696d8b66d7261ae75a96fb8bdf2729 (diff) | |
download | ruby-417ea3a3c37395c49df9bc8bed21d3627736c288.tar.gz |
* string.c (rb_memhash): zero-filled strings should return
different values. [ruby-core:33500]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_string.rb')
-rw-r--r-- | test/ruby/test_string.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index 892aa2335d..e8287622f6 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -727,6 +727,8 @@ class TestString < Test::Unit::TestCase def test_hash assert_equal(S("hello").hash, S("hello").hash) assert(S("hello").hash != S("helLO").hash) + bug4104 = '[ruby-core:33500]' + assert_not_equal(S("a").hash, S("a\0").hash, bug4104) end def test_hash_random |