summaryrefslogtreecommitdiff
path: root/test/dbm
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-08 03:15:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-08 03:15:28 +0000
commit703fb3d9becd0626c57f343ce16635c0434f19c6 (patch)
tree87cde4963e024d99d58a9d38c847b38db52214ce /test/dbm
parent0042ccef2cea6fafecf2edbfee90dd160cee7ba7 (diff)
* 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/dbm')
-rw-r--r--test/dbm/test_dbm.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb
index 5cf8acb..1845a6d 100644
--- a/test/dbm/test_dbm.rb
+++ b/test/dbm/test_dbm.rb
@@ -217,7 +217,7 @@ if defined? DBM
n = 0
ret = @dbm.each_pair {|key, val|
- assert_not_nil(i = keys.key(key))
+ assert_not_nil(i = keys.index(key))
assert_equal(val, values[i])
n += 1
@@ -239,7 +239,7 @@ if defined? DBM
n = 0
ret = @dbm.each_value {|val|
assert_not_nil(key = @dbm.key(val))
- assert_not_nil(i = keys.key(key))
+ assert_not_nil(i = keys.index(key))
assert_equal(val, values[i])
n += 1
@@ -260,7 +260,7 @@ if defined? DBM
n = 0
ret = @dbm.each_key {|key|
- assert_not_nil(i = keys.key(key))
+ assert_not_nil(i = keys.index(key))
assert_equal(@dbm[key], values[i])
n += 1