vimtex/test/vader/latexmain.vader

17 lines
542 B
Plaintext
Raw Normal View History

2016-04-12 14:27:42 -04:00
Execute (Assert b:vimtex.tex = latexmain.tex):
2016-04-10 17:13:20 -04:00
call system('touch latexmain.tex')
call system('touch latexmain.tex.latexmain')
2016-04-10 16:03:14 -04:00
new test.tex
2016-04-10 17:13:20 -04:00
AssertEqual 'latexmain.tex', fnamemodify(b:vimtex.tex, ':t')
bdelete!
call system('rm latexmain.tex*')
2016-04-10 16:03:14 -04:00
2016-06-20 16:36:57 -04:00
Execute (Assert b:vimtex.tex = main_texroot.tex):
call system('touch main_texroot.tex')
call writefile(['%! TeX Root = main_texroot.tex'], 'test.tex')
edit test.tex
AssertEqual 'main_texroot.tex', fnamemodify(b:vimtex.tex, ':t')
bdelete!
call system('rm main_texroot.tex')