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/E1h3nUY-0000sM-Vf@gemulon.postgresql.org
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

Lines changed: 2 additions & 6 deletions
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

Lines changed: 2 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy