summaryrefslogtreecommitdiff
path: root/Test/Y02compmatch.ztst
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-06-25 03:06:33 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-06-25 03:06:33 +0000
commit50f88338e67084fa31be6843d47bd4d675458e7a (patch)
treec773e8d4342bf45cd3f1863567a4ed9f632932f2 /Test/Y02compmatch.ztst
parentf0dd0ced30845735c9d3922a706ff3a508b3c0b6 (diff)
downloadzsh-50f88338e67084fa31be6843d47bd4d675458e7a.tar.gz
zsh-50f88338e67084fa31be6843d47bd4d675458e7a.zip
Assorted "make check" tweaks.
Diffstat (limited to 'Test/Y02compmatch.ztst')
-rw-r--r--Test/Y02compmatch.ztst12
1 files changed, 5 insertions, 7 deletions
diff --git a/Test/Y02compmatch.ztst b/Test/Y02compmatch.ztst
index f726923e8..4d4e0c0fa 100644
--- a/Test/Y02compmatch.ztst
+++ b/Test/Y02compmatch.ztst
@@ -16,10 +16,10 @@
mkdir match.tmp
cd match.tmp
- comptestinit -z $ZTST_testdir/../Src/zsh
-
- list1=(IndianRed IndianRed2 IndianRed3 IndianRed4)
- test_code () {
+ comptestinit -z $ZTST_testdir/../Src/zsh &&
+ {
+ list1=(IndianRed IndianRed2 IndianRed3 IndianRed4)
+ test_code () {
matcher=$1;
list=$2;
code="compdef _tst tst ; _tst () { echo -n '<COMPADD>';compadd -M '"
@@ -31,12 +31,10 @@
code="$code; echo -n '</INSERT_POSITIONS>'"
code="$code}"
comptesteval "$code"
+ }
}
-
-
-
%test
test_code z: list1