Thread: pgsql: Improve coverage of utils/float.h

pgsql: Improve coverage of utils/float.h

From
Michael Paquier
Date:
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(+)