X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Fjson;h=8a0111708d2186914a79b5201bb538d0b9cd36bc;hp=bfafd559efa3806016830fca29b0e3d7f35edcfe;hb=e723e21f75ed1f7c18de015f3913cb25d1b19f46;hpb=f6adf6615c51d878a61b1f37afb4c501ba31e4de 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