summaryrefslogtreecommitdiff
path: root/test/sdbm/test_sdbm.rb
diff options
context:
space:
mode:
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
-