From 684fd47788e20a5e72e59289479a5f7630ab6c91 Mon Sep 17 00:00:00 2001 From: PapaCharlie Date: Tue, 11 Jun 2019 20:39:08 -0700 Subject: [PATCH] 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 --- zsh_completions_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh_completions_test.go b/zsh_completions_test.go index e53fa886..6e3688e1 100644 --- a/zsh_completions_test.go +++ b/zsh_completions_test.go @@ -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`, }, }, {