X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fover.t;fp=t%2Fover.t;h=3e2860f8f96d0d40805b72f5b954b79e5970c67b;hb=e1f70280eec5fc523b8d13de30249d425ff0fab7;hp=4c8f8098a3e3edefbf978eb6ea5be5608f0ece53;hpb=d72ce02b49367927003fa79d9cbb58f12f9d8955;p=public-inbox.git diff --git a/t/over.t b/t/over.t index 4c8f8098..3e2860f8 100644 --- 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();