pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Improve regression tests for degree-based trigonometric function
Date: Tue, 19 Apr 2016 20:47:27 +0000
Message-ID: <E1ascYR-0004no-7M@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Improve regression tests for degree-based trigonometric functions.

Print the actual value of each function result that's expected to be exact,
rather than merely emitting a NULL if it's not right.  Although we print
these with extra_float_digits = 3, we should not trust that the platform
will produce a result visibly different from the expected value if it's off
only in the last place; hence, also include comparisons against the exact
values as before.  This is a bit bulkier and uglier than the previous
printout, but it will provide more information and be easier to interpret
if there's a test failure.

Discussion: <18241.1461073100@sss.pgh.pa.us>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4db0d2d2fe935e086dfd26c00f707dab298b443c

Modified Files
--------------
.../expected/float8-exp-three-digits-win32.out     | 155 ++++++++++++---------
src/test/regress/expected/float8-small-is-zero.out | 155 ++++++++++++---------
.../regress/expected/float8-small-is-zero_1.out    | 155 ++++++++++++---------
src/test/regress/expected/float8.out               | 155 ++++++++++++---------
src/test/regress/sql/float8.sql                    |  48 +++++--
5 files changed, 399 insertions(+), 269 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1ascYR-0004no-7M@gemulon.postgresql.org>
Permalink:  ../E1ascYR-0004no-7M@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ascYR-0004no-7M@gemulon.postgresql.org

 · 

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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Improve regression tests for degree-based trigonometric function
  In-Reply-To: <E1ascYR-0004no-7M@gemulon.postgresql.org>
  References: <E1ascYR-0004no-7M@gemulon.postgresql.org>

* 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