From: Austin Clements Date: Sun, 16 Dec 2012 03:17:27 +0000 (-0500) Subject: test: Sanity tests for the --format-version argument X-Git-Tag: 0.15_rc1~75 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=e723e21f75ed1f7c18de015f3913cb25d1b19f46 test: Sanity tests for the --format-version argument --- diff --git a/test/json b/test/json index bfafd559..8a011170 100755 --- a/test/json +++ b/test/json @@ -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