I broke up with neovim....vim is my best friend now
This commit is contained in:
19
dot_vim/plugged/vimtex/test/test-cache/test-empty.vim
Normal file
19
dot_vim/plugged/vimtex/test/test-cache/test-empty.vim
Normal file
@@ -0,0 +1,19 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user