diff options
Diffstat (limited to 'test/ruby/test_hash.rb')
-rw-r--r-- | test/ruby/test_hash.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index 22c694ef1f..e21c464de3 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -45,11 +45,11 @@ class TestHash < Test::Unit::TestCase $x = Hash.new([]) assert_equal([], $x[22]) - assert($x[22].equal?($x[22])) + assert_same($x[22], $x[22]) $x = Hash.new{[]} assert_equal([], $x[22]) - assert(!$x[22].equal?($x[22])) + assert_not_same($x[22], $x[22]) $x = Hash.new{|h,k| $z = k; h[k] = k*2} $z = 0 |