test: Sanity tests for the --format-version argument

This commit is contained in:
Austin Clements 2012-12-15 22:17:27 -05:00 committed by David Bremner
parent f6adf6615c
commit e723e21f75

View file

@ -60,4 +60,10 @@ test_expect_equal_json "$output" "[{\"thread\": \"XXX\",
\"tags\": [\"inbox\",
\"unread\"]}]"
test_expect_code 20 "Format version: too low" \
"notmuch search --format-version=0 \\*"
test_expect_code 21 "Format version: too high" \
"notmuch search --format-version=999 \\*"
test_done