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:
zeertzjq
2025-12-01 10:16:36 +08:00
parent c9f63d13b6
commit d13e8f1a34

View File

@@ -62,6 +62,7 @@ func Test_matchfuzzy()
let l = getbufinfo()->map({_, v -> fnamemodify(v.name, ':t')})->matchfuzzy('ndl')
call assert_equal(1, len(l))
call assert_match('needle', l[0])
%bw!
" Test for fuzzy matching dicts
let l = [{'id' : 5, 'val' : 'crayon'}, {'id' : 6, 'val' : 'camera'}]