about summary refs log tree commit homepage
path: root/t/msgmap.t
diff options
context:
space:
mode:
Diffstat (limited to 't/msgmap.t')
-rw-r--r--t/msgmap.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/msgmap.t b/t/msgmap.t
index 4dddd0a8..20985ce8 100644
--- a/t/msgmap.t
+++ b/t/msgmap.t
@@ -30,6 +30,9 @@ $@ = undef;
 my $ret = $d->mid_insert('a@b');
 is($ret, undef, 'duplicate mid_insert in undef result');
 is($d->num_for('a@b'), $mid2num{'a@b'}, 'existing number not clobbered');
+my $next = (sort(keys %num2mid))[-1];
+is($d->mid_insert('ok@unique'), $next + 1,
+        'got expected num after failing mid_insert');
 
 foreach my $n (keys %num2mid) {
         is($d->mid_for($n), $num2mid{$n}, "num:$n maps correctly");