From c204da04aa24e85236f82ba5a7c6c7e19c8a20d3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 25 Apr 2018 08:52:49 +0000 Subject: thread: sort incoming messages by Date Improve the display by finding any parent when we see out-of-order References. This prevents us from having two roots in the test case like Mail::Thread does. --- t/thread-cycle.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/thread-cycle.t b/t/thread-cycle.t index 9e915a12..78dcb6f9 100644 --- a/t/thread-cycle.t +++ b/t/thread-cycle.t @@ -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'); } -- cgit v1.2.3-24-ge0c7