From 0de20a595c964c03ed363ff01d4707a17cee3759 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 3 Aug 2023 05:45:13 +0200 Subject: [PATCH] Add latex-mode tests for align.el --- test/lisp/align-resources/latex-mode.erts | 29 +++++++++++++++++++++++ test/lisp/align-tests.el | 4 ++++ 2 files changed, 33 insertions(+) create mode 100644 test/lisp/align-resources/latex-mode.erts diff --git a/test/lisp/align-resources/latex-mode.erts b/test/lisp/align-resources/latex-mode.erts new file mode 100644 index 00000000000..cdc93e4a925 --- /dev/null +++ b/test/lisp/align-resources/latex-mode.erts @@ -0,0 +1,29 @@ +Name: tex-record-separator and basic-line-continuation + +=-= +\documentclass{} + +\begin{document} + +\begin{tabular}{l|l} + \textit{Player name} &\textit{Career home runs} \\ + \hline + Hank Aaron &755 \\ + Babe Ruth &714 +\end{tabular} + +\end{document} +=-= +\documentclass{} + +\begin{document} + +\begin{tabular}{l|l} + \textit{Player name} & \textit{Career home runs} \\ + \hline + Hank Aaron & 755 \\ + Babe Ruth & 714 +\end{tabular} + +\end{document} +=-=-= diff --git a/test/lisp/align-tests.el b/test/lisp/align-tests.el index 90b6b9df9bf..dac23ef96d9 100644 --- a/test/lisp/align-tests.el +++ b/test/lisp/align-tests.el @@ -43,6 +43,10 @@ (ert-test-erts-file (ert-resource-file "java-mode.erts") (test-align-transform-fun #'java-mode))) +(ert-deftest align-latex () + (ert-test-erts-file (ert-resource-file "latex-mode.erts") + (test-align-transform-fun #'latex-mode))) + (ert-deftest align-python () (ert-test-erts-file (ert-resource-file "python-mode.erts") (test-align-transform-fun #'python-mode))) -- 2.39.2