details:   http://hg.nginx.org/njs/rev/edf64bf9677c
branches:  
changeset: 355:edf64bf9677c
user:      Andrey Zelenkov <[email protected]>
date:      Wed Jun 07 16:36:17 2017 +0300
description:
More scientific notation tests.

diffstat:

 njs/test/njs_unit_test.c |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r 2cba0bd90189 -r edf64bf9677c njs/test/njs_unit_test.c
--- a/njs/test/njs_unit_test.c  Wed Jun 07 16:36:13 2017 +0300
+++ b/njs/test/njs_unit_test.c  Wed Jun 07 16:36:17 2017 +0300
@@ -197,6 +197,12 @@ static njs_unit_test_t  njs_test[] =
     { nxt_string("0e-309"),
       nxt_string("0") },
 
+    { nxt_string("1e309"),
+      nxt_string("Infinity") },
+
+    { nxt_string("-1e309"),
+      nxt_string("-Infinity") },
+
     { nxt_string("1e"),
       nxt_string("SyntaxError: Unexpected token \"e\" in 1") },
 
_______________________________________________
nginx-devel mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to