diff options
| author | Eyal Posener <[email protected]> | 2017-05-08 06:33:45 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-05-08 06:33:45 +0300 |
| commit | 6dd6a04d241b1c267d686d5b4b112f8e8d3f7338 (patch) | |
| tree | 28d9df10ae15cb7736f6a57f904eaf95083097ee /gocomplete/tests.go | |
| parent | e8f6dfad584cb1e3082bc7ea82f8c0551dd944b3 (diff) | |
| parent | 328144c31b5abd57be42f18ffb8a442c78619097 (diff) | |
Merge pull request #8 from posener/move-match
Move match
Diffstat (limited to 'gocomplete/tests.go')
| -rw-r--r-- | gocomplete/tests.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gocomplete/tests.go b/gocomplete/tests.go index 3a6a185..905c5dc 100644 --- a/gocomplete/tests.go +++ b/gocomplete/tests.go @@ -9,14 +9,15 @@ import ( "strings" "github.com/posener/complete" + "github.com/posener/complete/match" ) func predictTest(testType string) complete.Predicate { - return func(last string) []complete.Matcher { + return func(last string) []match.Matcher { tests := testNames(testType) - options := make([]complete.Matcher, len(tests)) + options := make([]match.Matcher, len(tests)) for i := range tests { - options[i] = complete.MatchPrefix(tests[i]) + options[i] = match.Prefix(tests[i]) } return options } |
