Re: [PATCH 2/3] test: improve rebase -q test
- From
Philip Oakley <philipoakley@iee.org>
- Date
- Jun 9, 2013, 22:44 UTC
- Message-ID
- <C30D5684C80641EFAC0F89F00B48A74F@PhilipOakley>
- In-Reply-To
- <CAMP44s38T9EUOe8EBKy1kxa-rEu7g0jb7+HB019AgCub+2SVnw@mail.gmail.com>
From: "Felipe Contreras" <felipe.contreras@gmail.com> Sent: Sunday, June 09, 2013 8:33 PM
Show 27 quoted lines
> On Sun, Jun 9, 2013 at 2:20 PM, Junio C Hamano <gitster@pobox.com>
> wrote:
>> Felipe Contreras <felipe.contreras@gmail.com> writes:
>>
>>> On Sun, Jun 9, 2013 at 1:30 PM, Junio C Hamano <gitster@pobox.com>
>>> wrote:
>>>
>>>> --- a/t/test-lib-functions.sh
>>>> +++ b/t/test-lib-functions.sh
>>>> @@ -606,6 +606,18 @@ test_cmp() {
>>>> $GIT_TEST_CMP "$@"
>>>> }
>>>>
>>>> +# Check if the file expected to be empty is indeed empty, and
>>>> barfs
>>>> +# otherwise.
>>>> +
>>>> +test_output_must_be_empty () {
>>>
>>> Why such a big name? test_empty() does the trick.
>>
>> Primarily in order to avoid that exact name "test_empty" that others
>> may want to use for a helper to check that the contents of a string
>> variable is empty.
>
> Which is never going to happen.
>While folks do use such simplistic names, given that the patch had many call sites, I do think Filipe's short name would quickly become the accepted test name and not cause any great difficulties.
regards Philip