]> git.notmuchmail.org Git - notmuch/commitdiff
test: Sanity tests for the --format-version argument
authorAustin Clements <amdragon@MIT.EDU>
Sun, 16 Dec 2012 03:17:27 +0000 (22:17 -0500)
committerDavid Bremner <bremner@debian.org>
Sun, 16 Dec 2012 21:21:49 +0000 (17:21 -0400)
test/json

index bfafd559efa3806016830fca29b0e3d7f35edcfe..8a0111708d2186914a79b5201bb538d0b9cd36bc 100755 (executable)
--- a/test/json
+++ b/test/json
@@ -60,4 +60,10 @@ test_expect_equal_json "$output" "[{\"thread\": \"XXX\",
  \"tags\": [\"inbox\",
  \"unread\"]}]"
 
  \"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
 test_done