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

nnoremap q :qall!<cr>

if vimtex#util#get_os() ==# 'win' | quitall | endif
call vimtex#log#set_silent()


let s:output = vimtex#jobs#capture("echo 'a\nb'")
call assert_equal(['a', 'b'], s:output)

call vimtex#jobs#run('sleep 0.2', {'wait_timeout': 150})
let s:log = vimtex#log#get()
call assert_equal(1, len(s:log))
call assert_equal('Job timed out while waiting!', s:log[0].msg[0])

let s:job = vimtex#jobs#start('sleep 100')
call assert_true(s:job.is_running())
call s:job.stop()
call assert_false(s:job.is_running())
call s:job.stop()

let s:output = vimtex#jobs#capture("echobaad foobar")
call assert_match('command not found', s:output[0])


call vimtex#test#finished()<commit_msg>test: adjusted test<commit_after>set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on

nnoremap q :qall!<cr>

if vimtex#util#get_os() ==# 'win' | quitall | endif
call vimtex#log#set_silent()


let s:output = vimtex#jobs#capture("echo 'a\nb'")
call assert_equal(['a', 'b'], s:output)

call vimtex#jobs#run('sleep 0.2', {'wait_timeout': 150})
let s:log = vimtex#log#get()
call assert_equal(1, len(s:log))
call assert_equal('Job timed out while waiting!', s:log[0].msg[0])

let s:job = vimtex#jobs#start('sleep 100')
call assert_true(s:job.is_running())
call s:job.stop()
call assert_false(s:job.is_running())
call s:job.stop()

let s:output = vimtex#jobs#capture("echobaad foobar")
call assert_match('not found', s:output[0])


call vimtex#test#finished()
{'fraction_non_alphanumeric': 0.18520942408376964, 'fraction_numerical': 0.015706806282722512, 'mean_word_length': 6.722222222222222, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4486734', 'n_tokens_mistral': 637, 'n_tokens_neox': 602, 'n_words': 134}