projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6adf66
)
test: Sanity tests for the --format-version argument
author
Austin Clements
<amdragon@MIT.EDU>
Sun, 16 Dec 2012 03:17:27 +0000
(22:17 -0500)
committer
David Bremner
<bremner@debian.org>
Sun, 16 Dec 2012 21:21:49 +0000
(17:21 -0400)
test/json
patch
|
blob
|
history
diff --git
a/test/json
b/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\"]}]"
+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