From: Valentin Bartenev Date: Fri, 2 Dec 2016 14:11:57 +0000 (+0300) Subject: Fixed a unit test for Math.acosh(). X-Git-Tag: 0.1.6~11 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=11f0486df568560a6727cdef33be6804cd2c9a11;p=njs.git Fixed a unit test for Math.acosh(). --- 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()"),