vim-patch:8.2.0951: search stat test has leftover from debugging (#16967)

Problem:    Search stat test has leftover from debugging.
Solution:   Remove line that writes a file. (Christian Brabandt, closes vim/vim#6224)
6ba24d8763
This commit is contained in:
zeertzjq 2022-01-07 09:51:06 +08:00 committed by GitHub
parent b435755452
commit e58071c92c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,6 @@ func Test_search_stat()
let stat = '\[2/50\]' let stat = '\[2/50\]'
let g:a = execute(':unsilent :norm! n') let g:a = execute(':unsilent :norm! n')
call assert_notmatch(pat .. stat, g:a) call assert_notmatch(pat .. stat, g:a)
call writefile(getline(1, '$'), 'sample.txt')
" n does not update search stat " n does not update search stat
call assert_equal( call assert_equal(
\ #{current: 50, exact_match: 1, total: 50, incomplete: 0, maxcount: 99}, \ #{current: 50, exact_match: 1, total: 50, incomplete: 0, maxcount: 99},