changeset 355:edf64bf9677c

More scientific notation tests.
author Andrey Zelenkov <zelenkov@nginx.com>
date Wed, 07 Jun 2017 16:36:17 +0300
parents 2cba0bd90189
children a0bc58cc65d5
files njs/test/njs_unit_test.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
     { 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") },