This commit is contained in:
rsteube 2019-06-12 16:34:04 +02:00
parent 4c5491dbc9
commit 4d1820be43

View file

@ -385,7 +385,7 @@ func TestMarkZshCompPositionalArgumentCustom(t *testing.T) {
c.ZshCompletionFunction = `
function __custom_function {
_values 'test' a b c
}`
}`
c.MarkZshCompPositionalArgumentCustom(1, "__custom_function")
buf := new(bytes.Buffer)
@ -399,7 +399,7 @@ function __custom_function {
if !strings.Contains(output, "'1: :__custom_function'") {
t.Error("should contain custom function argument")
}
if !strings.Contains(output, "function __custom_function {") {
t.Error("should contain custom function")
}