[PATCH 1/3] test: fix count test

Jani Nikula jani at nikula.org
Wed Dec 5 13:23:22 PST 2012


On Wed, 05 Dec 2012, Michal Nazarewicz <mina86 at mina86.com> wrote:
> Hmm, I thought I've already replied to this email, but it still sticks
> as unread.  In case I did, sorry for duplicate.
>
> On Wed, Dec 05 2012, Jani Nikula wrote:
>> Please try this patch, which should pass if everything were all right:
>>
>> diff --git a/test/count b/test/count
>> index 300b171..ecae40e 100755
>> --- a/test/count
>> +++ b/test/count
>> @@ -6,6 +6,11 @@ add_email_corpus
>>  
>>  SEARCH="\"*\""
>>  
>> +test_begin_subtest "check the query"
>> +test_expect_equal \
>> +    "`notmuch count ${SEARCH}`" \
>> +    "`notmuch count '*'`"
>> +
>>  test_begin_subtest "message count is the default for notmuch count"
>>  test_expect_equal \
>>      "`notmuch search --output=messages ${SEARCH} | wc -l`" \
>
> Yeah, you're right, sorry for the commotion.

No worries. I wrote the test originally, and I thought it was all right
too...

Jani.


More information about the notmuch mailing list