]> granicus.if.org Git - postgresql/commit
Improve coverage of utils/float.h
authorMichael Paquier <michael@paquier.xyz>
Wed, 28 Aug 2019 03:28:16 +0000 (12:28 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 28 Aug 2019 03:28:16 +0000 (12:28 +0900)
commit80d0e5ba3fe03890831b425e85d10150e226239e
treeba8aba02e08aa2461534155ab1ac1c6a0ea08052
parentbe182e4f9e899a531094bee83b14fd434e52f7cb
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
src/test/regress/expected/float4-misrounded-input.out
src/test/regress/expected/float4.out
src/test/regress/sql/float4.sql