github.com/shaardie/u-root@v4.0.1-0.20190127173353-f24a1c26aa2e+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 }