X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fthread-cycle.t;h=e9ea0a27223ba5c3c73f481a9bb4e8fcfcfde8c3;hb=6ebcec3add4d6aeff6e3b3eb019a404528c079ec;hp=9e915a124986866c33061e3c950f8aed733eea88;hpb=ec2df4c3b80104a0bf15b0d917d82264bbf9b50e;p=public-inbox.git
diff --git a/t/thread-cycle.t b/t/thread-cycle.t
index 9e915a12..e9ea0a27 100644
--- a/t/thread-cycle.t
+++ b/t/thread-cycle.t
@@ -1,4 +1,4 @@
-# Copyright (C) 2016-2018 all contributors
+# Copyright (C) 2016-2020 all contributors
# License: AGPL-3.0+
use strict;
use warnings;
@@ -24,7 +24,7 @@ sub make_objs {
'References' => $msg->{references},
]);
push @simples, $simple;
- bless $msg, 'PublicInbox::SearchMsg'
+ bless $msg, 'PublicInbox::Smsg'
} @_;
(\@simples, \@msgs);
}
@@ -85,13 +85,13 @@ SKIP: {
}
($simples, $smsgs) = make_objs(reverse @backwards);
my $forward = thread_to_s($smsgs);
-if ('Mail::Thread sorts by Date') {
+unless ('Mail::Thread sorts by Date') {
SKIP: {
skip 'Mail::Thread missing', 1 unless $mt;
check_mt($forward, $simples, 'matches Mail::Thread forwards');
}
}
-unless ('sorting by Date') {
+if ('sorting by Date') {
is("\n".$backward, "\n".$forward, 'forward and backward matches');
}