details: http://hg.nginx.org/njs/rev/f06c2b48ff78 branches: changeset: 263:f06c2b48ff78 user: Valentin Bartenev <vb...@nginx.com> date: Fri Nov 18 17:25:45 2016 +0300 description: Improved unit test for Math.exp(1).
diffstat: njs/test/njs_unit_test.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 4f4bda866d8e -r f06c2b48ff78 njs/test/njs_unit_test.c --- a/njs/test/njs_unit_test.c Fri Nov 18 17:25:25 2016 +0300 +++ b/njs/test/njs_unit_test.c Fri Nov 18 17:25:45 2016 +0300 @@ -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()"), _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel