]> git.kaiwu.me - njs.git/commitdiff
More scientific notation tests.
authorAndrey Zelenkov <zelenkov@nginx.com>
Wed, 7 Jun 2017 13:36:17 +0000 (16:36 +0300)
committerAndrey Zelenkov <zelenkov@nginx.com>
Wed, 7 Jun 2017 13:36:17 +0000 (16:36 +0300)
njs/test/njs_unit_test.c

index 0639da4fceb602fa8032a6dbfd80be10622e2974..cd8288c65ac1c33289017522d2095a945322d14d 100644 (file)
@@ -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") },