Re: expressive test macros (was: Report test_atomic_ops() failuresconsistently, via macros)

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: expressive test macros (was: Report test_atomic_ops() failuresconsistently, via macros)
Дата
Msg-id 4d0e55f4-6a2f-b143-9ed2-157877051ba8@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: expressive test macros (was: Report test_atomic_ops() failuresconsistently, via macros)  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
On 2019-10-08 06:59, Noah Misch wrote:
>> Btw., JUnit uses the ordering convention assertEquals(expected, actual),
>> whereas Perl Test::More uses is(actual, expected).  Let's make sure we
>> pick something and stick with it.
> Since we write "if (actual == expected)", I prefer f(actual, expected).  CUnit
> uses CU_ASSERT_EQUAL(actual, expected).

Yes, that seems to be the dominating order outside of JUnit.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Kohei KaiGai
Дата:
Сообщение: Re: How to retain lesser paths at add_path()?
Следующее
От: Konstantin Knizhnik
Дата:
Сообщение: Re: Global shared meta cache