aboutsummaryrefslogtreecommitdiff
path: root/tests/name
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-07-17 15:54:32 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-07-17 21:25:08 +0300
commit2d9c7b8c018f161cb22e1bccb207c46e1eac8497 (patch)
treeba6c40458739231b2defdc03b2331c786702fa5c /tests/name
parentcca12c6c6ec645172a731fc4c759e378a9132a29 (diff)
Allow independent wildcard patterns in a group
Diffstat (limited to 'tests/name')
-rw-r--r--tests/name/pattern.test13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/name/pattern.test b/tests/name/pattern.test
index 9eff855..b5b0bea 100644
--- a/tests/name/pattern.test
+++ b/tests/name/pattern.test
@@ -28,6 +28,11 @@ EOI
touch foo.txt;
$* <'print {foo *.txt}' >'foo foo.txt'
+ : independent-patterns
+ :
+ touch foo.txt -bar;
+ $* <'print {*.txt foo* -b*}' >'foo.txt foo.txt -bar'
+
: second-inclusion
:
touch foo.txt bar.txt;
@@ -39,14 +44,14 @@ EOI
{
: simple
:
- $* <'print {*.txt file{foo}}' 2>>EOE != 0
- <stdin>:1:8: error: invalid 'file{foo}' in name pattern
+ $* <'print {*.txt +foo file{bar}}' 2>>EOE != 0
+ <stdin>:1:8: error: invalid 'file{bar}' in name pattern
EOE
: inclusion-exclusion-sign
:
- $* <'print {*.txt foo}' 2>>EOE != 0
- <stdin>:1:8: error: missing leading +/- in 'foo' name pattern
+ $* <'print {*.txt -foo bar}' 2>>EOE != 0
+ <stdin>:1:8: error: missing leading +/- in 'bar' name pattern
EOE
: empty-inclusion-exclusion