Skip to content

Commit c43ecde

Browse files
committed
Further adjust the tests for the hyperbolic functions.
It looks like we can leave in most of the test cases for Infinity/NaN inputs, but buildfarm member jacana gets the wrong answer for acosh(Inf). It's not worth carrying a variant expected file for that, so just disable that one test. Discussion: https://postgr.es/m/[email protected]
1 parent 20f7c3d commit c43ecde

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/test/regress/expected/float8.out

+2-6
Original file line numberDiff line numberDiff line change
@@ -566,12 +566,8 @@ SELECT asinh(float8 'nan');
566566
NaN
567567
(1 row)
568568

569-
SELECT acosh(float8 'infinity');
570-
acosh
571-
----------
572-
Infinity
573-
(1 row)
574-
569+
-- acosh(Inf) should be Inf, but some mingw versions produce NaN, so skip test
570+
-- SELECT acosh(float8 'infinity');
575571
SELECT acosh(float8 '-infinity');
576572
ERROR: input is out of range
577573
SELECT acosh(float8 'nan');

src/test/regress/sql/float8.sql

+2-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ SELECT tanh(float8 'nan');
176176
SELECT asinh(float8 'infinity');
177177
SELECT asinh(float8 '-infinity');
178178
SELECT asinh(float8 'nan');
179-
SELECT acosh(float8 'infinity');
179+
-- acosh(Inf) should be Inf, but some mingw versions produce NaN, so skip test
180+
-- SELECT acosh(float8 'infinity');
180181
SELECT acosh(float8 '-infinity');
181182
SELECT acosh(float8 'nan');
182183
SELECT atanh(float8 'infinity');

0 commit comments

Comments
 (0)