Fix broken test

The breakage was caused by the change at line 336, which changed the completion from
```
--option[Help message]:
```
to
```
--option[Help message]:option
```
Semantically this does not change the behavior of the completion, but it does tell zsh to tell you
which flag it is currently completing
This commit is contained in:
PapaCharlie 2019-06-11 20:39:08 -07:00
parent c87d78cfc6
commit 684fd47788

View file

@ -77,7 +77,7 @@ func TestGenZshCompletion(t *testing.T) {
`_arguments -C \\\n.*'--debug\[description]'`,
`function _rootcmd_subcmd1 {`,
`function _rootcmd_subcmd1 {`,
`_arguments \\\n.*'\(-o --option\)'{-o,--option}'\[option description]:' \\\n`,
`_arguments \\\n.*'\(-o --option\)'{-o,--option}'\[option description]:option' \\\n`,
},
},
{