pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve coverage of utils/float.h
Date: Wed, 28 Aug 2019 03:29:23 +0000
Message-ID: <E1i2oeB-0000Qs-Sl@gemulon.postgresql.org> (raw)

Improve coverage of utils/float.h

check_float4_val() checks after underflow and overflow of values
converted from float8 to float4, but there has never been any regression
tests for that.  This brings the coverage of float.h to 100%.

Author: Movead Li
Discussion: https://postgr.es/m/20190822174636998766188@highgo.ca

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/80d0e5ba3fe03890831b425e85d10150e226239e

Modified Files
--------------
src/test/regress/expected/float4-misrounded-input.out | 8 ++++++++
src/test/regress/expected/float4.out                  | 8 ++++++++
src/test/regress/sql/float4.sql                       | 5 +++++
3 files changed, 21 insertions(+)



Message-ID: <E1i2oeB-0000Qs-Sl@gemulon.postgresql.org>
Permalink:  ../E1i2oeB-0000Qs-Sl@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1i2oeB-0000Qs-Sl@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: michael@paquier.xyz
  Subject: Re: pgsql: Improve coverage of utils/float.h
  In-Reply-To: <E1i2oeB-0000Qs-Sl@gemulon.postgresql.org>
  References: <E1i2oeB-0000Qs-Sl@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