diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-07-17 15:54:32 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-07-17 21:25:08 +0300 |
commit | 2d9c7b8c018f161cb22e1bccb207c46e1eac8497 (patch) | |
tree | ba6c40458739231b2defdc03b2331c786702fa5c /tests/name | |
parent | cca12c6c6ec645172a731fc4c759e378a9132a29 (diff) |
Allow independent wildcard patterns in a group
Diffstat (limited to 'tests/name')
-rw-r--r-- | tests/name/pattern.test | 13 |
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 |