diff options
| author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-06 17:27:58 +0000 |
|---|---|---|
| committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-06 17:27:58 +0000 |
| commit | 904404aca04ad3587920b1a90628a8343bf930f5 (patch) | |
| tree | 449e30f756b8267489357d3241fbf517c01d4f6c /test/ruby/test_hash.rb | |
| parent | 19561c2d83aad1817c1dc6909828d84c425a5ed3 (diff) | |
| download | ruby-904404aca04ad3587920b1a90628a8343bf930f5.tar.gz ruby-904404aca04ad3587920b1a90628a8343bf930f5.tar.xz ruby-904404aca04ad3587920b1a90628a8343bf930f5.zip | |
* test/ruby/test_*.rb: assert_same, assert_match, and so on.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 22c694ef1..e21c464de 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 |
