Added Vader test for subfile main detection (#629)

This commit is contained in:
Karl Yngve Lervåg 2016-12-01 10:01:15 +01:00
parent 491057bb9f
commit d382cb4d4f

14
test/vader/subfiles.vader Normal file
View File

@ -0,0 +1,14 @@
Execute (Find correct main file from subfiles):
call system('main.tex')
call writefile([
\ '\documentclass[main.tex]{subfiles}',
\ '\begin{document}',
\ '\end{document}',
\], 'subfile.tex')
edit subfile.tex
AssertEqual 'main.tex', fnamemodify(b:vimtex.tex, ':t')
bdelete!
Execute (Clean up):
call system('rm -f main.tex subfile.tex')