diff options
| author | Eyal Posener <[email protected]> | 2017-11-04 11:57:02 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-11-04 11:57:02 +0200 |
| commit | dc2bc5a81accba8782bebea28628224643a8286a (patch) | |
| tree | 0f7976f712f3cb3c70eac8eb78b5027e445e16c8 /predict_test.go | |
| parent | 00c86494ff7035cfd62f66042e9ca2b118b90122 (diff) | |
| parent | a1f9ea005b8360153429321071da4e42ce6ce323 (diff) | |
Merge pull request #54 from posener/split-last-equal
Add logic to complete when last flag uses the equal sign
Diffstat (limited to 'predict_test.go')
| -rw-r--r-- | predict_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/predict_test.go b/predict_test.go index ba876d0..24df78d 100644 --- a/predict_test.go +++ b/predict_test.go @@ -152,7 +152,7 @@ func TestPredicate(t *testing.T) { for _, arg := range tt.argList { t.Run(tt.name+"/arg="+arg, func(t *testing.T) { - matches := tt.p.Predict(newArgs(strings.Split(arg, " "))) + matches := tt.p.Predict(newArgs(arg)) sort.Strings(matches) sort.Strings(tt.want) |
