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

nnoremap q :qall!<cr>

silent edit test-next.tex

if empty($INMAKE) | finish | endif

try
  let s:cmd = vimtex#cmd#get_next()
  call assert_equal('\begin', s:cmd.name)
catch
  echo 'Failed to parse command!'
  echo getline('.') "\n"
  cquit
endtry

call vimtex#test#finished()
