From 1dca65cdadd314bd390ccde84efa8fae3ea2ce06 Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Wed, 7 Jun 2017 16:36:17 +0300 Subject: [PATCH] More scientific notation tests. --- njs/test/njs_unit_test.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/njs/test/njs_unit_test.c b/njs/test/njs_unit_test.c index 0639da4f..cd8288c6 100644 --- a/njs/test/njs_unit_test.c +++ b/njs/test/njs_unit_test.c @@ -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") }, -- 2.47.3