summaryrefslogtreecommitdiff
path: root/test/sdbm/test_sdbm.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-03 16:43:40 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-03 16:43:40 +0000
commitbafad1ca3b34631bb2ca3c9da0f624143da5f058 (patch)
tree37456221c6383f50edf7b7536c9676bf45baef0d /test/sdbm/test_sdbm.rb
parent08e57c4dbd647031ddd8514d6aa97e66327f4382 (diff)
* test/sdbm/test_sdbm.rb: renamed from ext/sdbm/testsdbm.rb with
modification to use test/unit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/sdbm/test_sdbm.rb')
-rw-r--r--test/sdbm/test_sdbm.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/sdbm/test_sdbm.rb b/test/sdbm/test_sdbm.rb
index 99450640b3..25e5371048 100644
--- a/test/sdbm/test_sdbm.rb
+++ b/test/sdbm/test_sdbm.rb
@@ -191,6 +191,13 @@ class TestSDBM < Test::Unit::TestCase
assert_nil(@sdbm['bar'])
end
+ def test_indexes
+ keys = %w(foo bar baz)
+ values = %w(FOO BAR BAZ)
+ @sdbm[keys[0]], @sdbm[keys[1]], @sdbm[keys[2]] = values
+ assert_equal(values.reverse, @sdbm.indexes(*keys.reverse))
+ end
+
def test_values_at
keys = %w(foo bar baz)
values = %w(FOO BAR BAZ)
@@ -512,4 +519,3 @@ class TestSDBM < Test::Unit::TestCase
}
end
end
-