about summary refs log tree commit diff
path: root/Test/Y01completion.ztst
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-10-16 17:19:18 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-10-16 17:19:18 +0000
commit5437faa28c0cf86c7241f523909ce33ad4839672 (patch)
tree6f18a5cfe4047d32986ff3a7714ec1178929e3c3 /Test/Y01completion.ztst
parent6cdd20e367e465bdc70e0616aa2dfbcfd05b1222 (diff)
downloadzsh-5437faa28c0cf86c7241f523909ce33ad4839672.tar.gz
zsh-5437faa28c0cf86c7241f523909ce33ad4839672.tar.xz
zsh-5437faa28c0cf86c7241f523909ce33ad4839672.zip
Merge assorted patches from the dev. version, as approved by PWS.
Read ChangeLog for details.
Diffstat (limited to 'Test/Y01completion.ztst')
-rw-r--r--Test/Y01completion.ztst56
1 files changed, 56 insertions, 0 deletions
diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst
new file mode 100644
index 000000000..371cad247
--- /dev/null
+++ b/Test/Y01completion.ztst
@@ -0,0 +1,56 @@
+# Tests for completion system.
+
+%prep
+  . $ZTST_srcdir/comptest
+
+  mkdir comp.tmp
+  cd comp.tmp
+
+  comptestinit -z $ZTST_testdir/../Src/zsh &&
+  {
+    mkdir dir1
+    mkdir dir2
+    touch file1
+    touch file2
+  }
+
+%test
+
+  comptest $': \t\t\t\t\t\t\t'
+0:directories and files
+>line: {: }{}
+>DESCRIPTION:{file}
+>DI:{dir1}
+>DI:{dir2}
+>FI:{file1}
+>FI:{file2}
+>line: {: dir1/}{}
+>line: {: dir2/}{}
+>line: {: file1}{}
+>line: {: file2}{}
+>line: {: dir1/}{}
+>line: {: dir2/}{}
+
+  comptesteval '_users () { compadd user1 user2 }'
+  comptest $': ~\t\t\t\t\t'
+0:tilde
+>line: {: ~user}{}
+>line: {: ~user}{}
+>NO:{user1}
+>NO:{user2}
+>line: {: ~user1}{}
+>line: {: ~user2}{}
+>line: {: ~user1}{}
+
+  comptest $'echo ;:\C-b\C-b\t'
+0:tilde
+>line: {echo }{;:}
+>DESCRIPTION:{file}
+>DI:{dir1}
+>DI:{dir2}
+>FI:{file1}
+>FI:{file2}
+
+%clean
+
+  zmodload -ui zsh/zpty