diff options
| author | Alex Dadgar <[email protected]> | 2017-08-24 17:37:26 -0700 |
|---|---|---|
| committer | Alex Dadgar <[email protected]> | 2017-08-24 17:37:26 -0700 |
| commit | 2b9ace50d6baef8456aa9cfb65b961b00888a54c (patch) | |
| tree | bab350a9418c03154bbfc728e946d66f7cb9d677 /complete_test.go | |
| parent | 97340ccc2198ce94214c480eddf0fb82cb8bb14f (diff) | |
Fix tests from rebase
Diffstat (limited to 'complete_test.go')
| -rw-r--r-- | complete_test.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/complete_test.go b/complete_test.go index 68efb0f..ba4df4a 100644 --- a/complete_test.go +++ b/complete_test.go @@ -228,7 +228,7 @@ func TestCompleter_Complete_SharedPrefix(t *testing.T) { }{ { args: "", - want: []string{"status", "job", "-h", "-global1", "-o"}, + want: []string{"status", "job"}, }, { args: "-", @@ -240,10 +240,18 @@ func TestCompleter_Complete_SharedPrefix(t *testing.T) { }, { args: "job ", - want: []string{"-h", "-global1", "status"}, + want: []string{"status"}, + }, + { + args: "job -", + want: []string{"-h", "-global1"}, }, { args: "job status ", + want: []string{}, + }, + { + args: "job status -", want: []string{"-f4", "-h", "-global1"}, }, } |
