]> git.cworth.org Git - notmuch/blob - test/T660-bad-date.sh
python-cffi: returned OwnedMessage objects from Message.replies
[notmuch] / test / T660-bad-date.sh
1 #!/usr/bin/env bash
2 test_description="parsing of bad dates"
3 . $(dirname "$0")/test-lib.sh || exit 1
4
5 add_message [date]='"()"'
6
7 test_begin_subtest 'Bad dates translate to a date after the Unix epoch'
8 cat <<EOF >EXPECTED
9 thread:0000000000000001   1970-01-01 [1/1] Notmuch Test Suite; Test message #1 (inbox unread)
10 EOF
11 notmuch search '*' > OUTPUT
12 test_expect_equal_file EXPECTED OUTPUT
13
14 test_done