Move formatter test to vader

This commit is contained in:
Karl Yngve Lervåg 2016-04-05 23:16:36 +02:00
parent ec1c8a0446
commit 5f3edf874c
2 changed files with 22 additions and 17 deletions

View File

@ -1,17 +0,0 @@
\documentclass{minimal}
\begin{document}
Lorem ipsum dolor sit amet, consetetur sadipscing % a comment
elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea
rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem
ipsum dolor sit amet.
% Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
% nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
% sed diam voluptua. At vero eos et accusam et justo duo dolores et ea
% rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem
% ipsum dolor sit amet.
\end{document}

22
test/vader/format.vader Normal file
View File

@ -0,0 +1,22 @@
Execute (Setup):
set tw=79
let g:vimtex_format_enabled = 1
Given tex (Format inline comment):
Lorem ipsum dolor sit amet, consetetur sadipscing % a comment
elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea
rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem
ipsum dolor sit amet.
Do:
gqG
Expect tex:
Lorem ipsum dolor sit amet, consetetur sadipscing % a comment
elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna
aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores
et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum
dolor sit amet.