summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:35:14 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:35:14 +0000
commit88ec5bb659fdc7ccf9d4b87fd0f8c324e88bb99b (patch)
treed741f9f4e9ffb25b601e1a58ac9e5cf1d05907ec
parent6d7fd0bc2baf4be34f244bbb2c6b69210b2afc25 (diff)
downloadzsh-88ec5bb659fdc7ccf9d4b87fd0f8c324e88bb99b.tar.gz
zsh-88ec5bb659fdc7ccf9d4b87fd0f8c324e88bb99b.tar.xz
zsh-88ec5bb659fdc7ccf9d4b87fd0f8c324e88bb99b.zip
moved from ./Test/53completion.ztst
-rw-r--r--Test/Y01completion.ztst55
1 files changed, 55 insertions, 0 deletions
diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst
new file mode 100644
index 000000000..bf80b6614
--- /dev/null
+++ b/Test/Y01completion.ztst
@@ -0,0 +1,55 @@
+# 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