From ac43c3b17f452b02edf1cce3632a433e998de5ca Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 27 Nov 2020 09:52:45 +0000 Subject: mm: min/max: return 0 instead of undef This simplifies callers and allows empty newsgroups to be represented (the WWW UI may be insufficient there, too). --- t/msgmap.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') diff --git a/t/msgmap.t b/t/msgmap.t index 437e106e..2d31f1de 100644 --- a/t/msgmap.t +++ b/t/msgmap.t @@ -12,7 +12,7 @@ my $d = PublicInbox::Msgmap->new($tmpdir, 1); my %mid2num; my %num2mid; my @mids = qw(a@b c@d e@f g@h aa@bb aa@cc); -is_deeply([$d->minmax], [undef,undef], "empty min max on new DB"); +is_deeply([$d->minmax], [0,0], "zero min max on new DB"); foreach my $mid (@mids) { my $n = $d->mid_insert($mid); -- cgit v1.2.3-24-ge0c7