From 40b01f5ae557fa262f4fc376312d34d5b02acb22 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Fri, 18 Nov 2016 17:25:45 +0300 Subject: [PATCH] Improved unit test for Math.exp(1). --- njs/test/njs_unit_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/njs/test/njs_unit_test.c b/njs/test/njs_unit_test.c index 75bbf404..d8c14013 100644 --- a/njs/test/njs_unit_test.c +++ b/njs/test/njs_unit_test.c @@ -5868,7 +5868,7 @@ static njs_unit_test_t njs_test[] = * The difference is 2 * Number.EPSILON on FreeBSD * and zero on other platforms. */ - { nxt_string("Math.exp(1) - Math.E <= 2 * Number.EPSILON"), + { nxt_string("Math.abs(Math.exp(1) - Math.E) <= 2 * Number.EPSILON"), nxt_string("true") }, { nxt_string("Math.expm1()"), -- 2.47.3