Skip to content
Myr

[vim] Fix vader test cases

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 4a4fef2 · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • tests:+4 added−4 removed

1 file+4 added−4 removed

modified:test/fzf.vader+4 added-4 removed
4 unmodified lines
5 Save &acd67Execute (fzf#run with dir option):8 let cwd = getcwd()9 let result = fzf#run({ 'options': '--filter=vdr', 'dir': g:dir })9 let result = fzf#run({ 'source': 'git ls-files', 'options': '--filter=vdr', 'dir': g:dir })10 AssertEqual ['fzf.vader'], result11 AssertEqual getcwd(), cwd1213 let result = sort(fzf#run({ 'options': '--filter e', 'dir': g:dir }))13 let result = sort(fzf#run({ 'source': 'git ls-files', 'options': '--filter e', 'dir': g:dir }))14 AssertEqual ['fzf.vader', 'test_go.rb'], result15 AssertEqual getcwd(), cwd1617Execute (fzf#run with Funcref command):18 let g:ret = []19 function! g:FzfTest(e)20 call add(g:ret, a:e)21 endfunction22 let result = sort(fzf#run({ 'sink': function('g:FzfTest'), 'options': '--filter e', 'dir': g:dir }))22 let result = sort(fzf#run({ 'source': 'git ls-files', 'sink': function('g:FzfTest'), 'options': '--filter e', 'dir': g:dir }))23 AssertEqual ['fzf.vader', 'test_go.rb'], result24 AssertEqual ['fzf.vader', 'test_go.rb'], sort(g:ret)2526Execute (fzf#run with string source):
112 unmodified lines
139140 let g:fzf_history_dir = '/tmp'141 let opts = fzf#wrap('foobar', {'options': '--color light'})142 Log opts143 Assert opts.options =~ '--history /tmp/foobar'143 Assert opts.options =~ "--history '/tmp/foobar'"144 Assert opts.options =~ '--color light'145146 let g:fzf_colors = { 'fg': ['fg', 'Error'] }147 let opts = fzf#wrap({})
23 unmodified lines