From 417ea3a3c37395c49df9bc8bed21d3627736c288 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 1 Dec 2010 05:36:39 +0000 Subject: * 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 --- test/ruby/test_string.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby') 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 -- cgit v1.2.3