set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on

nnoremap q :qall!<cr>

let g:vimtex_cache_root = '.'
let g:vimtex_cache_persistent = 0

silent edit test1.tex

if empty($INMAKE) | finish | endif

let s:candidates = vimtex#test#completion('\ref{', '')
call assert_equal(len(s:candidates), 21)

let s:candidates = vimtex#test#completion('\eqref{', '')
call assert_equal(len(s:candidates), 15)

call vimtex#test#finished()
