aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/search-output
diff options
context:
space:
mode:
Diffstat (limited to 'test/search-output')
-rwxr-xr-xtest/search-output12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/search-output b/test/search-output
index 1554eb1e..8ba8acf7 100755
--- a/test/search-output
+++ b/test/search-output
@@ -304,4 +304,16 @@ cat <<EOF >EXPECTED
EOF
test_expect_equal_file OUTPUT EXPECTED
+test_begin_subtest "notmuch search for non-existent message prints nothing"
+notmuch search "no-message-matches-this" > OUTPUT
+echo -n >EXPECTED
+test_expect_equal_file OUTPUT EXPECTED
+
+test_begin_subtest "notmuch search --format=json for non-existent message prints proper empty json"
+notmuch search --format=json "no-message-matches-this" > OUTPUT
+cat <<EOF >EXPECTED
+[]
+EOF
+test_expect_equal_file OUTPUT EXPECTED
+
test_done