about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-31 13:51:24 +0000
committerEric Wong <e@80x24.org>2021-01-01 05:00:38 +0000
commita7539312d51443c9a705e64b16ac4fdcd4b17a6e (patch)
tree9cda0673780df69159f8295d68f53c2852ecfc46 /t
parentfa7bab31c9e5ded5c832b42de56f48dbdf9de972 (diff)
downloadpublic-inbox-a7539312d51443c9a705e64b16ac4fdcd4b17a6e.tar.gz
In most cases, we won't need to index by value, so
don't waste cycles or space on it.
Diffstat (limited to 't')
-rw-r--r--t/shared_kv.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/shared_kv.t b/t/shared_kv.t
index 4b727462..ad901328 100644
--- a/t/shared_kv.t
+++ b/t/shared_kv.t
@@ -26,6 +26,7 @@ is($skv->get($dead), $cafe, 'get after xchg');
 is($skv->xchg($dead, undef), $cafe, 'xchg to undef');
 is($skv->get($dead), undef, 'get after xchg to undef');
 is($skv->get($cafe), $dead, 'get after set_maybe');
+ok($skv->index_values, 'index_values works');
 is($skv->replace_values($dead, $cafe), 1, 'replaced one by value');
 is($skv->get($cafe), $cafe, 'value updated');
 is($skv->replace_values($dead, $cafe), 0, 'replaced none by value');