diff options
| author | Eyal Posener <[email protected]> | 2017-11-04 11:20:50 +0200 |
|---|---|---|
| committer | Eyal Posener <[email protected]> | 2017-11-04 11:32:33 +0200 |
| commit | aae7e1e39fb3554591e2d20b4c86fea9bf2b15bc (patch) | |
| tree | f9a8fe2a68d6e28755a3ef8fc6b73f99a06d5574 /predict_test.go | |
| parent | 88e59760adaddb8276c9b15511302890690e2dae (diff) | |
Add logic to complete when last flag uses the equal sign
If the last flag is of the form -flag=value, complete the value according to -flag.
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 ac26e33..8baecf7 100644 --- a/predict_test.go +++ b/predict_test.go @@ -158,7 +158,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) |
