summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_string.rb2
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