From: Dmitry Volyntsev Date: Fri, 16 Apr 2021 13:46:46 +0000 (+0000) Subject: Fixed expect tests. X-Git-Tag: 0.6.0~35 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=68530fd3776d085a33f5e0b9a371a2f838bdb87b;p=njs.git Fixed expect tests. --- diff --git a/test/njs_expect_test.exp b/test/njs_expect_test.exp index 8781f1c5..e179f413 100644 --- a/test/njs_expect_test.exp +++ b/test/njs_expect_test.exp @@ -70,7 +70,7 @@ njs_test { # Global completions, yes njs_test { {"\t\ty" - "\a\r\nDisplay all*possibilities? (y or n)*await"} + "\a\r\nDisplay all*possibilities? (y or n)*Array"} } # Global completions, single partial match @@ -393,9 +393,9 @@ njs_test { # Non-ASCII characters njs_test { {"'絵文字'\r\n" - "絵文字"} + "'絵文字'"} {"var v = 'абвгдеёжзийкл';v[10]\r\n" - "й"} + "'й'"} } # Immediate events @@ -805,7 +805,7 @@ njs_test { {"(new Function('return this'))() === globalThis\r\n" "true\r\n"} {"new Function('return this;')\r\n" - "TypeError: function constructor is disabled in \"safe\" mode\r\n"} + "[Function]"} {"new Function('return thi')\r\n" "TypeError: function constructor is disabled in \"safe\" mode\r\n"} } "-u"