diff options
Diffstat (limited to 'src/options_test.go')
-rw-r--r-- | src/options_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/options_test.go b/src/options_test.go index aae8eedc..78207275 100644 --- a/src/options_test.go +++ b/src/options_test.go @@ -417,6 +417,13 @@ func TestPreviewOpts(t *testing.T) { opts.Preview.size.size == 15) { t.Error(opts.Preview) } + opts = optsFor("--preview=foo", "--preview-window=up", "--preview-window=default:70%") + if !(opts.Preview.command == "foo" && + opts.Preview.position == posRight && + opts.Preview.size.percent == true && + opts.Preview.size.size == 70) { + t.Error(opts.Preview) + } } func TestAdditiveExpect(t *testing.T) { |