pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Noah Misch <noah@leadboat.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: expressive test macros (was: Report test_atomic_ops() failures consistently, via macros)
Date: Wed, 9 Oct 2019 17:47:27 +0200
Message-ID: <4d0e55f4-6a2f-b143-9ed2-157877051ba8@2ndquadrant.com> (raw)
In-Reply-To: <20191008045946.GA4054860@rfd.leadboat.com>
References: <E1iGnXq-0001K7-Aj@gemulon.postgresql.org>
	<20191005190729.6sx7g23ifdu65s7s@alap3.anarazel.de>
	<20191006022038.GB4023404@rfd.leadboat.com>
	<f0906c55-87cb-e940-b27b-99d41c14d44d@2ndquadrant.com>
	<20191008045946.GA4054860@rfd.leadboat.com>

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





view thread (10+ messages)

Message-ID: <4d0e55f4-6a2f-b143-9ed2-157877051ba8@2ndquadrant.com>
Permalink:  ../4d0e55f4-6a2f-b143-9ed2-157877051ba8@2ndquadrant.com/
Also on:    postgresql.org/message-id/4d0e55f4-6a2f-b143-9ed2-157877051ba8@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, noah@leadboat.com, andres@anarazel.de, pgsql-hackers@lists.postgresql.org
  Subject: Re: expressive test macros (was: Report test_atomic_ops() failures consistently, via macros)
  In-Reply-To: <4d0e55f4-6a2f-b143-9ed2-157877051ba8@2ndquadrant.com>
  References: <E1iGnXq-0001K7-Aj@gemulon.postgresql.org> <20191005190729.6sx7g23ifdu65s7s@alap3.anarazel.de> <20191006022038.GB4023404@rfd.leadboat.com> <f0906c55-87cb-e940-b27b-99d41c14d44d@2ndquadrant.com> <20191008045946.GA4054860@rfd.leadboat.com> <4d0e55f4-6a2f-b143-9ed2-157877051ba8@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox