]> granicus.if.org Git - postgresql/commit
Improve regression tests for degree-based trigonometric functions.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 19 Apr 2016 20:47:21 +0000 (16:47 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 19 Apr 2016 20:47:21 +0000 (16:47 -0400)
commit4db0d2d2fe935e086dfd26c00f707dab298b443c
tree31d2f8a71d5f0b20a59feb5a7bf36e42812a288a
parenta0382e2d7e330de13e15cea0921a95faa9da3570
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>
src/test/regress/expected/float8-exp-three-digits-win32.out
src/test/regress/expected/float8-small-is-zero.out
src/test/regress/expected/float8-small-is-zero_1.out
src/test/regress/expected/float8.out
src/test/regress/sql/float8.sql