summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-11-23 11:57:02 +0100
committerOliver Kiddle <opk@zsh.org>2016-11-23 11:57:02 +0100
commit07509be51ae06b699dba6a3a85d76d79812a0d75 (patch)
tree719721e68d01cb033b0e1867e8eb10a37fbd9a89
parentee1222454e0fd58b70878ed6864146e00a835fd8 (diff)
downloadzsh-07509be51ae06b699dba6a3a85d76d79812a0d75.tar.gz
zsh-07509be51ae06b699dba6a3a85d76d79812a0d75.zip
unposted: add test case for partial completion matching of options with arguments
-rw-r--r--ChangeLog2
-rw-r--r--Test/Y03arguments.ztst6
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 641992bd1..a1a4a0850 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2016-11-23 Oliver Kiddle <opk@zsh.org>
+ * unposted: Test/Y03arguments.ztst: partial match test case
+
* unposted: Src/builtin.c, Test/B03print.ztst: fix printf -v
to an array without format string reuse
diff --git a/Test/Y03arguments.ztst b/Test/Y03arguments.ztst
index 0763c419d..d59ed5424 100644
--- a/Test/Y03arguments.ztst
+++ b/Test/Y03arguments.ztst
@@ -304,6 +304,12 @@
>NO:{--abc}
>line: {tst --aah}{}
+ tst_arguments '--prefix=: :(one two)' '--prop=: :(three four)' --pre
+ comptest $'tst --pre=o\t --=\t'
+0:partial completion of option with an argument
+>line: {tst --prefix=one }{}
+>line: {tst --prefix=one --prop=}{}
+
%clean
zmodload -ui zsh/zpty