]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/over.t
overidx: introduce changes for external index
[public-inbox.git] / t / over.t
index 4c8f8098a3e3edefbf978eb6ea5be5608f0ece53..3e2860f8f96d0d40805b72f5b954b79e5970c67b 100644 (file)
--- a/t/over.t
+++ b/t/over.t
@@ -74,4 +74,15 @@ SKIP: {
                'WAL journal_mode not clobbered if manually set');
 }
 
+# ext index additions
+{
+       my $hex = 'deadbeefcafe';
+       my $n = $over->oid_add($hex);
+       ok($n > 0, 'oid_add returned number');
+       is($over->oid2num($hex), $n, 'oid2num works');
+       my $n2 = $over->oid_add($hex.$hex);
+       ok($n2 > $n, 'oid_add increments');
+       is($over->oid2num($hex.$hex), $n2, 'oid2num works again');
+}
+
 done_testing();