mirror of
https://github.com/neovim/neovim.git
synced 2025-12-13 10:02:49 +00:00
vim-patch:9.1.1939: tests: test_matchfuzzy() leaves swapfiles behind
Problem: tests: test_matchfuzzy() leaves swapfiles behind
Solution: Close loaded buffers using "%bw"
6e9694df10
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -62,6 +62,7 @@ func Test_matchfuzzy()
|
|||||||
let l = getbufinfo()->map({_, v -> fnamemodify(v.name, ':t')})->matchfuzzy('ndl')
|
let l = getbufinfo()->map({_, v -> fnamemodify(v.name, ':t')})->matchfuzzy('ndl')
|
||||||
call assert_equal(1, len(l))
|
call assert_equal(1, len(l))
|
||||||
call assert_match('needle', l[0])
|
call assert_match('needle', l[0])
|
||||||
|
%bw!
|
||||||
|
|
||||||
" Test for fuzzy matching dicts
|
" Test for fuzzy matching dicts
|
||||||
let l = [{'id' : 5, 'val' : 'crayon'}, {'id' : 6, 'val' : 'camera'}]
|
let l = [{'id' : 5, 'val' : 'crayon'}, {'id' : 6, 'val' : 'camera'}]
|
||||||
|
|||||||
Reference in New Issue
Block a user