From: Bruno Haible Date: Sat, 17 May 2025 12:18:45 +0000 (+0200) Subject: sinh: Add more tests. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf5e55b81821413908f40503a2e834d97c76e52e;p=thirdparty%2Fgnulib.git sinh: Add more tests. * tests/test-sinh.c: Include , . (main): Add another test case. --- diff --git a/ChangeLog b/ChangeLog index 5c1e3f2b6e..f3a175cfba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-05-17 Bruno Haible + + sinh: Add more tests. + * tests/test-sinh.c: Include , . + (main): Add another test case. + 2025-05-17 Bruno Haible crypto/sha512-buffer: Add some tests. diff --git a/tests/test-sinh.c b/tests/test-sinh.c index 4ee11bc433..24c91c7f69 100644 --- a/tests/test-sinh.c +++ b/tests/test-sinh.c @@ -23,6 +23,9 @@ #include "signature.h" SIGNATURE_CHECK (sinh, double, (double)); +#include +#include + #include "macros.h" volatile double x; @@ -36,5 +39,14 @@ main () y = sinh (x); ASSERT (y >= 0.6366535821 && y <= 0.6366535822); + /* Another particular value. */ + { + char buf[80]; + x = 5.152978147453169098; + y = sinh (x); + sprintf (buf, "%.2f", y); + ASSERT (strcmp (buf, "86.47") == 0); + } + return test_exit_status; }