]> git.notmuchmail.org Git - notmuch/blobdiff - test/T050-new.sh
doc: document thread subqueries
[notmuch] / test / T050-new.sh
index b98549781d5302ec04d204fde1d2c24d36017ec7..9025fa7aa63e3ac75774f0663d8cd1c63b7f45e4 100755 (executable)
@@ -356,7 +356,15 @@ test_expect_equal_file EXPECTED OUTPUT
 
 add_email_corpus broken
 test_begin_subtest "reference loop does not crash"
-test_subtest_known_broken
 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 <<EOF > 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