notmuch.git  about / heads / tags
Unnamed repository; edit this file 'description' to name the repository.
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

(*) 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.^

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