From e723e21f75ed1f7c18de015f3913cb25d1b19f46 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Sat, 15 Dec 2012 22:17:27 -0500 Subject: [PATCH] test: Sanity tests for the --format-version argument --- test/json | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.43.0