* tests/test-sinh.c: Include <stdio.h>, <string.h>.
(main): Add another test case.
+2025-05-17 Bruno Haible <bruno@clisp.org>
+
+ sinh: Add more tests.
+ * tests/test-sinh.c: Include <stdio.h>, <string.h>.
+ (main): Add another test case.
+
2025-05-17 Bruno Haible <bruno@clisp.org>
crypto/sha512-buffer: Add some tests.
#include "signature.h"
SIGNATURE_CHECK (sinh, double, (double));
+#include <stdio.h>
+#include <string.h>
+
#include "macros.h"
volatile double x;
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;
}