]> git.kaiwu.me - njs.git/commitdiff
Test for right-associativity of exponential operator.
authorValentin Bartenev <vbart@nginx.com>
Fri, 23 Dec 2016 16:42:15 +0000 (19:42 +0300)
committerValentin Bartenev <vbart@nginx.com>
Fri, 23 Dec 2016 16:42:15 +0000 (19:42 +0300)
njs/test/njs_unit_test.c

index b702f355bfc6f4906f7fd3c82c7124f4b93abe8f..e4eb3b2ff15214240b510ab4c5685850cac93370 100644 (file)
@@ -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") },