Added Vader test for subfile main detection (#629)
This commit is contained in:
parent
491057bb9f
commit
d382cb4d4f
14
test/vader/subfiles.vader
Normal file
14
test/vader/subfiles.vader
Normal 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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user