Welcome! Log In Create A New Profile

Advanced

[njs] Added additional RegExp tests.

Dmitry Volyntsev
February 28, 2019 12:36PM
details: https://hg.nginx.org/njs/rev/195158f4a6a7
branches:
changeset: 815:195158f4a6a7
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Thu Feb 28 20:34:47 2019 +0300
description:
Added additional RegExp tests.

diffstat:

njs/test/njs_unit_test.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r 33c663d84114 -r 195158f4a6a7 njs/test/njs_unit_test.c
--- a/njs/test/njs_unit_test.c Thu Feb 28 19:30:32 2019 +0300
+++ b/njs/test/njs_unit_test.c Thu Feb 28 20:34:47 2019 +0300
@@ -6627,6 +6627,12 @@ static njs_unit_test_t njs_test[] =
{ nxt_string("var r = /LS/i.exec(false); r[0]"),
nxt_string("ls") },

+ { nxt_string("var r = (/^.+$/mg), s = 'ab\\nc'; [r.exec(s), r.exec(s)]"),
+ nxt_string("ab,c") },
+
+ { nxt_string("var r = (/^.+$/mg); [r.global, r.multiline, r.ignoreCase]"),
+ nxt_string("true,true,false") },
+
{ nxt_string("var r = /./; r"),
nxt_string("/./") },

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Added additional RegExp tests.

Dmitry Volyntsev 254 February 28, 2019 12:36PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 300
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready