X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT050-new.sh;h=9025fa7aa63e3ac75774f0663d8cd1c63b7f45e4;hb=5ad39ebf75eb85263e4b64f21e07ec02194f9573;hp=cd5223643725efa2170880c50e7e8fd1d6465c6e;hpb=7354d6d8f6fe413097e4fe3dc450594f016334a9;p=notmuch diff --git a/test/T050-new.sh b/test/T050-new.sh index cd522364..9025fa7a 100755 --- a/test/T050-new.sh +++ b/test/T050-new.sh @@ -354,4 +354,17 @@ exit status: 75 EOF test_expect_equal_file EXPECTED OUTPUT +add_email_corpus broken +test_begin_subtest "reference loop does not crash" +test_expect_code 0 "notmuch show --format=json id:mid-loop-12@example.org id:mid-loop-21@example.org > OUTPUT" + +test_begin_subtest "reference loop ordered by date" +threadid=$(notmuch search --output=threads id:mid-loop-12@example.org) +notmuch show --format=mbox $threadid | grep '^Date' > OUTPUT +cat < EXPECTED +Date: Thu, 16 Jun 2016 22:14:41 -0400 +Date: Fri, 17 Jun 2016 22:14:41 -0400 +EOF +test_expect_equal_file EXPECTED OUTPUT + test_done