Updated latexmain test

This commit is contained in:
Karl Yngve Lervåg 2016-04-10 23:13:20 +02:00
parent 11f60f5084
commit 63ba4f3b3f

View File

@ -1,12 +1,9 @@
Execute (Setup):
Execute (Assert b:vimtex.tex = latexmain.tex):
let g:tex_flavor = 'latex'
call system('touch main.tex')
call system('touch main.tex.latexmain')
Execute (Assert root = main.tex):
call system('touch latexmain.tex')
call system('touch latexmain.tex.latexmain')
new test.tex
AssertEqual 'main.tex', fnamemodify(b:vimtex.tex, ':t')
Execute (Cleanup):
call system('rm main.tex*')
AssertEqual 'latexmain.tex', fnamemodify(b:vimtex.tex, ':t')
bdelete!
call system('rm latexmain.tex*')