]> git.eshelyaron.com Git - emacs.git/commitdiff
Add latex-mode tests for align.el
authorStefan Kangas <stefankangas@gmail.com>
Thu, 3 Aug 2023 03:45:13 +0000 (05:45 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Thu, 3 Aug 2023 03:45:13 +0000 (05:45 +0200)
test/lisp/align-resources/latex-mode.erts [new file with mode: 0644]
test/lisp/align-tests.el

diff --git a/test/lisp/align-resources/latex-mode.erts b/test/lisp/align-resources/latex-mode.erts
new file mode 100644 (file)
index 0000000..cdc93e4
--- /dev/null
@@ -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}
+=-=-=
index 90b6b9df9bff241217f785c94d096002e021e352..dac23ef96d9c851086f162b12f22a9c8f6e5cd97 100644 (file)
   (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)))