Files
dotfiles/dot_vim/plugged/vimtex/test/test-jobs/test-capture.vim

18 lines
350 B
VimL

set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on
nnoremap q :qall!<cr>
if vimtex#util#is_win() | quitall | endif
let s:output = vimtex#jobs#capture("echo 'a\nb'")
call assert_equal(['a', 'b'], s:output)
let s:output = vimtex#jobs#capture("echobaad foobar")
call assert_match('not found', s:output[0])
call vimtex#test#finished()