]> git.notmuchmail.org Git - notmuch/blob - test/T660-bad-date.sh
lib: add known broken test for parsing bad dates.
[notmuch] / test / T660-bad-date.sh
1 #!/usr/bin/env bash
2 test_description="parsing of bad dates"
3 . ./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 test_subtest_known_broken
9 cat <<EOF >EXPECTED
10 thread:0000000000000001   1970-01-01 [1/1] Notmuch Test Suite; Test message #1 (inbox unread)
11 EOF
12 notmuch search '*' > OUTPUT
13 test_expect_equal_file EXPECTED OUTPUT
14
15 test_done