github.com/mem/u-root@v2.0.1-0.20181004165302-9b18b4636a33+incompatible/cmds/elvish/edit/completion/complete_redir_test.go (about) 1 package completion 2 3 import "testing" 4 5 func TestFindRedirComplContext(t *testing.T) { 6 testComplContextFinder(t, "findRedirComplContext", findRedirComplContext, []complContextFinderTest{ 7 {"a >", &redirComplContext{ 8 complContextCommon{"", quotingForEmptySeed, 3, 3}}}, 9 {"a >b", &redirComplContext{ 10 complContextCommon{"b", quotingForEmptySeed, 3, 4}}}, 11 }) 12 }