summaryrefslogtreecommitdiff
path: root/predict_test.go
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2017-11-04 11:57:02 +0200
committerGitHub <[email protected]>2017-11-04 11:57:02 +0200
commitdc2bc5a81accba8782bebea28628224643a8286a (patch)
tree0f7976f712f3cb3c70eac8eb78b5027e445e16c8 /predict_test.go
parent00c86494ff7035cfd62f66042e9ca2b118b90122 (diff)
parenta1f9ea005b8360153429321071da4e42ce6ce323 (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.go2
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)