aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@MIT.EDU>2012-12-15 22:17:27 -0500
committerGravatar David Bremner <bremner@debian.org>2012-12-16 17:21:49 -0400
commite723e21f75ed1f7c18de015f3913cb25d1b19f46 (patch)
tree84090aebe74a305871f88314e14d8a712fa44995 /test
parentf6adf6615c51d878a61b1f37afb4c501ba31e4de (diff)
test: Sanity tests for the --format-version argument
Diffstat (limited to 'test')
-rwxr-xr-xtest/json6
1 files changed, 6 insertions, 0 deletions
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