mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
40139: tests: Convert comments to diagnostics; test backslashes. (after 40129)
This commit is contained in:
parent
03bd5e287f
commit
74b7c6b7d6
2 changed files with 12 additions and 10 deletions
|
@ -1,5 +1,8 @@
|
||||||
2016-12-10 Daniel Shahaf <d.s@daniel.shahaf.name>
|
2016-12-10 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||||
|
|
||||||
|
* 40139: Test/Y03arguments.ztst: tests: Convert comments to
|
||||||
|
diagnostics; test backslashes. (after 40129)
|
||||||
|
|
||||||
* users/22182: Completion/Zsh/Context/_brace_parameter: Propagate
|
* users/22182: Completion/Zsh/Context/_brace_parameter: Propagate
|
||||||
22161 docs patch to completion descriptions.
|
22161 docs patch to completion descriptions.
|
||||||
|
|
||||||
|
|
|
@ -40,14 +40,13 @@
|
||||||
>NO:{a}
|
>NO:{a}
|
||||||
>NO:{b}
|
>NO:{b}
|
||||||
|
|
||||||
# it ought to be possible to include the quoted backslash here
|
tst_arguments ':desc2:((a\:a\ value b\:other\\\\value))'
|
||||||
tst_arguments ':desc2:((a\:a\ value b\:other\\value))'
|
|
||||||
comptest $'tst \t'
|
comptest $'tst \t'
|
||||||
0:a and b with descriptions
|
0:a and b with descriptions
|
||||||
>line: {tst }{}
|
>line: {tst }{}
|
||||||
>DESCRIPTION:{desc2}
|
>DESCRIPTION:{desc2}
|
||||||
>NO:{a -- a value}
|
>NO:{a -- a value}
|
||||||
>NO:{b -- othervalue}
|
>NO:{b -- other\value}
|
||||||
|
|
||||||
tst_arguments ':desc1:(arg1)' ':desc2:(arg2)' ':desc3:(arg3)'
|
tst_arguments ':desc1:(arg1)' ':desc2:(arg2)' ':desc3:(arg3)'
|
||||||
comptest $'tst \t\t\t\C-w\C-w\C-w\C-d'
|
comptest $'tst \t\t\t\C-w\C-w\C-w\C-d'
|
||||||
|
@ -430,7 +429,6 @@
|
||||||
>line: {tst -h -}{}
|
>line: {tst -h -}{}
|
||||||
>MESSAGE:{no arguments}
|
>MESSAGE:{no arguments}
|
||||||
|
|
||||||
# this would ideally not offer -b as it is already on the command-line
|
|
||||||
tst_arguments -a '(-a)-b'
|
tst_arguments -a '(-a)-b'
|
||||||
comptest $'tst - -b\C-b\C-b\C-b\t'
|
comptest $'tst - -b\C-b\C-b\C-b\t'
|
||||||
0:exclusion only applies to later words
|
0:exclusion only applies to later words
|
||||||
|
@ -438,8 +436,8 @@
|
||||||
>DESCRIPTION:{option}
|
>DESCRIPTION:{option}
|
||||||
>NO:{-a}
|
>NO:{-a}
|
||||||
>NO:{-b}
|
>NO:{-b}
|
||||||
|
F:shouldn't offer -b as it is already on the command-line
|
||||||
|
|
||||||
# ideally, would handle exclusion within the current word
|
|
||||||
tst_arguments -s : '(-d)-a' -b -c -d
|
tst_arguments -s : '(-d)-a' -b -c -d
|
||||||
comptest $'tst -ab\t -\t\eb\eb \C-b-\t'
|
comptest $'tst -ab\t -\t\eb\eb \C-b-\t'
|
||||||
0:exclusion with clumped options, in, after and before
|
0:exclusion with clumped options, in, after and before
|
||||||
|
@ -454,17 +452,18 @@
|
||||||
>NO:{-b}
|
>NO:{-b}
|
||||||
>NO:{-c}
|
>NO:{-c}
|
||||||
>NO:{-d}
|
>NO:{-d}
|
||||||
|
F:the first tab press shouldn't offer -d since -a is on the command line
|
||||||
|
|
||||||
tst_arguments '-a:arg' -b '(-b)-c'
|
tst_arguments '-a:arg' -b '(-b)-c'
|
||||||
comptest $'tst -a -c -\t'
|
comptest $'tst -a -c -\t'
|
||||||
0:exclusion with option argument that looks like an option
|
0:exclusion with option argument that looks like an option
|
||||||
>line: {tst -a -c -}{}
|
>line: {tst -a -c -}{}
|
||||||
>MESSAGE:{no arguments}
|
>MESSAGE:{no arguments}
|
||||||
# seems we don't handle this case, ideal result would be as follows
|
F:The current behaviour is wrong; the correct expected output is:
|
||||||
#>line: {tst -a -c -}{}
|
F:>line: {tst -a -c -}{}
|
||||||
#>DESCRIPTION:{option}
|
F:>DESCRIPTION:{option}
|
||||||
#>NO:{-b}
|
F:>NO:{-b}
|
||||||
#>NO:{-c}
|
F:>NO:{-c}
|
||||||
|
|
||||||
tst_arguments --abc --aah :arg:
|
tst_arguments --abc --aah :arg:
|
||||||
comptesteval 'setopt bashautolist automenu'
|
comptesteval 'setopt bashautolist automenu'
|
||||||
|
|
Loading…
Reference in a new issue