From 2d9c7b8c018f161cb22e1bccb207c46e1eac8497 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 17 Jul 2017 15:54:32 +0300 Subject: Allow independent wildcard patterns in a group --- tests/name/pattern.test | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'tests') 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 - :1:8: error: invalid 'file{foo}' in name pattern + $* <'print {*.txt +foo file{bar}}' 2>>EOE != 0 + :1:8: error: invalid 'file{bar}' in name pattern EOE : inclusion-exclusion-sign : - $* <'print {*.txt foo}' 2>>EOE != 0 - :1:8: error: missing leading +/- in 'foo' name pattern + $* <'print {*.txt -foo bar}' 2>>EOE != 0 + :1:8: error: missing leading +/- in 'bar' name pattern EOE : empty-inclusion-exclusion -- cgit v1.1