X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Fcount;h=da86c8cc70cf4a9f32669fd1b3472353f528d295;hp=05713fdc7eb250a65b618fbd152846f93d08a134;hb=84719b08f757a6079f4c3331d0c476d19b265948;hpb=360c3c86070ba60c3973da7803335ba7331e7e9d diff --git a/test/count b/test/count index 05713fdc..da86c8cc 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@griffis1.net`" + test_begin_subtest "count with no matching messages" test_expect_equal \ "0" \