aboutsummaryrefslogtreecommitdiff
path: root/tests/function/regex/testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-09-30 18:10:09 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-10-01 12:15:10 +0300
commitc478a365d8479ca25f6a72d42ecd45dcb9e9569a (patch)
treea4993602fe16877bee0395acd00991cfeebf9c26 /tests/function/regex/testscript
parent0d3248f51515d92d5229cd5e6ef30f1f963d7a5f (diff)
Make $regex.{match,search}() to return NULL for no match if return_match or return_match flag is specified
Diffstat (limited to 'tests/function/regex/testscript')
-rw-r--r--tests/function/regex/testscript8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/function/regex/testscript b/tests/function/regex/testscript
index 977d7b3..1fdb383 100644
--- a/tests/function/regex/testscript
+++ b/tests/function/regex/testscript
@@ -167,7 +167,7 @@
: failure
:
- $* <<EOI >''
+ $* <<EOI >'[null]'
print $regex.match(" bar", '([^\s]+)\s+([^\s]+)', return_subs)
EOI
}
@@ -225,8 +225,8 @@
: failure
:
- $* <<EOI >''
- print $regex.match(" bar", '([^\s]+)\s+([^\s]+)', return_subs)
+ $* <<EOI >'[null]'
+ print $regex.search(" bar", '([^\s]+)\s+([^\s]+)', return_subs)
EOI
}
@@ -247,7 +247,7 @@
: failure
:
- $* <<EOI >''
+ $* <<EOI >'[null]'
print $regex.search(" bar", '([^\s]+)\s+([^\s]+)', return_match)
EOI
}