diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-08 03:15:28 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-08 03:15:28 +0000 |
commit | 703fb3d9becd0626c57f343ce16635c0434f19c6 (patch) | |
tree | 87cde4963e024d99d58a9d38c847b38db52214ce /test/gdbm | |
parent | 0042ccef2cea6fafecf2edbfee90dd160cee7ba7 (diff) | |
download | bundler-703fb3d9becd0626c57f343ce16635c0434f19c6.tar.gz |
* ext/gdbm/gdbm.c (fgdbm_index): make #index warn like Hash.
[ruby-dev:37039]
* ext/sdbm/init.c (Init_sdbm): typo fixed. [ruby-dev:37039]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/gdbm')
-rw-r--r-- | test/gdbm/test_gdbm.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb index 8c86d4510d..7e28d5121d 100644 --- a/test/gdbm/test_gdbm.rb +++ b/test/gdbm/test_gdbm.rb @@ -276,9 +276,9 @@ if defined? GDBM } end - def test_index + def test_key assert_equal('bar', @gdbm['foo'] = 'bar') - assert_equal('foo', @gdbm.index('bar')) + assert_equal('foo', @gdbm.key('bar')) assert_nil(@gdbm['bar']) end @@ -354,7 +354,7 @@ if defined? GDBM n = 0 ret = @gdbm.each_value {|val| - assert_not_nil(key = @gdbm.index(val)) + assert_not_nil(key = @gdbm.key(val)) assert_not_nil(i = keys.index(key)) assert_equal(val, values[i]) |