From: Valentin Bartenev Date: Fri, 18 Nov 2016 14:25:45 +0000 (+0300) Subject: Improved unit test for Math.exp(1). X-Git-Tag: 0.1.6~19 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=40b01f5ae557fa262f4fc376312d34d5b02acb22;p=njs.git Improved unit test for Math.exp(1). --- 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()"),