From: Andrey Zelenkov Date: Wed, 7 Jun 2017 13:36:17 +0000 (+0300) Subject: More scientific notation tests. X-Git-Tag: 0.1.11~24 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=1dca65cdadd314bd390ccde84efa8fae3ea2ce06;p=njs.git More scientific notation tests. --- 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") },