[PATCH 5/7] test: Sanity tests for the --format-version argument

Subject: [PATCH 5/7] test: Sanity tests for the --format-version argument

Date: Sat, 15 Dec 2012 22:17:27 -0500

To: notmuch@notmuchmail.org

Cc:

From: Austin Clements


---
 test/json |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/json b/test/json
index bfafd55..8a01117 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
-- 
1.7.10.4


Thread: