unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob f65544b9ffdf70d07f1f94a4c9b3448dcc84aa5a 396 bytes (raw)
name: test/T660-bad-date.sh 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
#!/usr/bin/env bash
test_description="parsing of bad dates"
. $(dirname "$0")/test-lib.sh || exit 1

add_message [date]='"()"'

test_begin_subtest 'Bad dates translate to a date after the Unix epoch'
cat <<EOF >EXPECTED
thread:0000000000000001   1970-01-01 [1/1] Notmuch Test Suite; Test message #1 (inbox unread)
EOF
notmuch search '*' > OUTPUT
test_expect_equal_file EXPECTED OUTPUT

test_done

debug log:

solving f65544b9ffdf ...
found f65544b9ffdf in https://yhetil.org/notmuch.git/

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).