X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Freplace.t;h=a1e2d63b6f8932aad5643473d833a787ff93f965;hb=80b887f29b2ec71d025b4c266a1c26314758994c;hp=c4dcb89dec1673f02def9001d299e6f71e14dd19;hpb=8722adec7acac538c1cb92de6d53002a4e4e33b8;p=public-inbox.git diff --git a/t/replace.t b/t/replace.t index c4dcb89d..a1e2d63b 100644 --- a/t/replace.t +++ b/t/replace.t @@ -106,8 +106,8 @@ EOF if (my $srch = $ibx->search) { for my $q ('f:streisand', 's:confidential', 'malibu') { - my $msgs = $srch->query($q); - is_deeply($msgs, [], "no match for $q"); + my $mset = $srch->mset($q); + is($mset->size, 0, "no match for $q"); } my @ok = ('f:redactor', 's:redacted', 'nothing to see'); if ($opt->{pre}) { @@ -119,8 +119,8 @@ EOF 's:message3', 's:message4'; } for my $q (@ok) { - my $msgs = $srch->query($q); - ok($msgs->[0], "got match for $q"); + my $mset = $srch->mset($q); + ok($mset->size, "got match for $q"); } }