[latex3-commits] [git/LaTeX3-latex3-latex2e] hotfix/gh414: Add test for #414 (fe82c1dd)

PhelypeOleinik phelype.oleinik at latex-project.org
Sun Oct 18 17:19:43 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : hotfix/gh414
Link       : https://github.com/latex3/latex2e/commit/fe82c1dd01cf5b2c0e73ecfe365929c343431f3a

>---------------------------------------------------------------

commit fe82c1dd01cf5b2c0e73ecfe365929c343431f3a
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Sun Oct 18 12:19:43 2020 -0300

    Add test for #414


>---------------------------------------------------------------

fe82c1dd01cf5b2c0e73ecfe365929c343431f3a
 base/testfiles/github-0414.lvt                     | 23 ++++++++++++++++++++++
 .../github-0282.tlg => testfiles/github-0414.tlg}  |  0
 base/testfiles/helpers/testpath/dummy.file         |  4 ++++
 3 files changed, 27 insertions(+)

diff --git a/base/testfiles/github-0414.lvt b/base/testfiles/github-0414.lvt
new file mode 100644
index 00000000..8571d5cc
--- /dev/null
+++ b/base/testfiles/github-0414.lvt
@@ -0,0 +1,23 @@
+\listfiles
+
+\begin{filecontents}[overwrite]{testpath/testcls.cls}
+\def\pkgloads{}
+\DeclareOption{array}{\def\pkgloads{\RequirePackage{array}}}
+\ProcessOptions
+\LoadClass{article}
+\pkgloads
+\end{filecontents}
+
+\makeatletter
+\def\input at path{{./testpath/}}
+\makeatother
+
+% \documentclass[array]{./testpath/testcls} % works
+\documentclass[array]{testcls} % doesn't
+
+\begin{document}
+\typeout{Right: \expandafter\meaning
+        \csname opt at testcls.cls\endcsname}
+\typeout{Wrong: \expandafter\meaning
+        \csname opt at ./testpath//testcls.cls\endcsname}
+\end{document}
diff --git a/base/testfiles-TU/github-0282.tlg b/base/testfiles/github-0414.tlg
similarity index 100%
copy from base/testfiles-TU/github-0282.tlg
copy to base/testfiles/github-0414.tlg
diff --git a/base/testfiles/helpers/testpath/dummy.file b/base/testfiles/helpers/testpath/dummy.file
new file mode 100644
index 00000000..3d84c8c7
--- /dev/null
+++ b/base/testfiles/helpers/testpath/dummy.file
@@ -0,0 +1,4 @@
+so that git sees this directory
+
+this file can be removed once a
+file is permanently added here





More information about the latex3-commits mailing list.