aboutsummaryrefslogtreecommitdiff
path: root/tests/name
diff options
context:
space:
mode:
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