From: Valentin Bartenev Date: Fri, 23 Dec 2016 16:42:15 +0000 (+0300) Subject: Test for right-associativity of exponential operator. X-Git-Tag: 0.1.7~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=268fa58ae51e4ef8da98761a27bd80876ad6d00e;p=njs.git Test for right-associativity of exponential operator. --- diff --git a/njs/test/njs_unit_test.c b/njs/test/njs_unit_test.c index b702f355..e4eb3b2f 100644 --- a/njs/test/njs_unit_test.c +++ b/njs/test/njs_unit_test.c @@ -226,6 +226,9 @@ static njs_unit_test_t njs_test[] = /* Exponentiation. */ + { nxt_string("2 ** 3 ** 2"), + nxt_string("512") }, + { nxt_string("2 ** (3 ** 2)"), nxt_string("512") },