From 11f0486df568560a6727cdef33be6804cd2c9a11 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Fri, 2 Dec 2016 17:11:57 +0300 Subject: [PATCH] Fixed a unit test for Math.acosh(). --- njs/test/njs_unit_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/njs/test/njs_unit_test.c b/njs/test/njs_unit_test.c index 18888f3d..83fad66d 100644 --- a/njs/test/njs_unit_test.c +++ b/njs/test/njs_unit_test.c @@ -5568,11 +5568,11 @@ static njs_unit_test_t njs_test[] = nxt_string("Infinity") }, /* - * The difference is 2 * Number.EPSILON on FreeBSD + * The difference is Number.EPSILON on Linux/i686 * and zero on other platforms. */ - { nxt_string("Math.abs(Math.cosh(1) - (1/Math.E + Math.E)/2)" - " <= 2 * Number.EPSILON"), + { nxt_string("Math.abs(Math.acosh((1/Math.E + Math.E)/2) - 1)" + " <= Number.EPSILON"), nxt_string("true") }, { nxt_string("Math.asin()"), -- 2.47.3