Skip to content

Commit 6a32671

Browse files
committed
add test for incorrect delimiter
1 parent 7664195 commit 6a32671

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

features/db-search.feature

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,13 @@ Feature: Search through the database
708708
"""
709709
Then the return code should be 1
710710

711+
When I try `wp db search 'unfindable' --regex --regex-delimiter='1'`
712+
Then STDERR should be:
713+
"""
714+
Error: The regex '1unfindable1' fails.
715+
"""
716+
Then the return code should be 1
717+
711718
When I run `wp db search '[0-9é]+?https:' --regex --regex-flags=u --before_context=0 --after_context=0`
712719
Then STDOUT should contain:
713720
"""

0 commit comments

Comments
 (0)