Changeset: c422d878475a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/c422d878475a
Modified Files:
        sql/test/Tests/regexp.test
Branch: regexp
Log Message:

Adds two tests for regexp PCRE_NOTEMTPY flag


diffs (20 lines):

diff --git a/sql/test/Tests/regexp.test b/sql/test/Tests/regexp.test
--- a/sql/test/Tests/regexp.test
+++ b/sql/test/Tests/regexp.test
@@ -59,3 +59,16 @@ query T rowsort
 select regexp_replace('foo', 'f o o', 'XYZ', 'x')
 ----
 XYZ
+
+# regex option - not emtpy match
+query T rowsort
+select regexp_replace('foobar', 'k?', 'XY')
+----
+foobar
+
+# regex option - emtpy match
+query T rowsort
+select regexp_replace('foobar', 'k?', '-', 'e')
+----
+-f-o-o-b-a-r-
+
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to