Files
dotfiles/dot_vim/plugged/vimtex/test/test-cache/test-empty.vim

20 lines
338 B
VimL

set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on
nnoremap q :qall!<cr>
let g:vimtex_cache_root = '.'
call writefile([], 'empty.json')
try
let s:cache = vimtex#cache#open('empty')
catch
call assert_report('Should not fail on empty cache file!')
finally
call delete('empty.json')
endtry
call vimtex#test#finished()