[PATCH 5/6] test: test notmuch count --output=files
Jani Nikula
jani at nikula.org
Mon May 13 11:27:00 PDT 2013
---
test/count | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/test/count b/test/count
index 05713fd..da86c8c 100755
--- a/test/count
+++ b/test/count
@@ -28,6 +28,16 @@ test_expect_equal \
"$((`notmuch search '*' | wc -l`))" \
"`notmuch count --output=threads '*'`"
+test_begin_subtest "files count"
+test_expect_equal \
+ "$((`notmuch search --output=files '*' | wc -l`))" \
+ "`notmuch count --output=files '*'`"
+
+test_begin_subtest "files count for a duplicate message-id"
+test_expect_equal \
+ "2" \
+ "`notmuch count --output=files id:20091117232137.GA7669 at griffis1.net`"
+
test_begin_subtest "count with no matching messages"
test_expect_equal \
"0" \
--
1.7.10.4
More information about the notmuch
mailing list