[latex3-commits] [git/LaTeX3-latex3-latex2e] gh778: Test file showing the wrong behaviour (ec35ad58)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Jun 13 04:25:42 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : gh778
Link       : https://github.com/latex3/latex2e/commit/ec35ad5842c0632bcbb61dfc412f629de6a7e2a1

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

commit ec35ad5842c0632bcbb61dfc412f629de6a7e2a1
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Sun Jun 12 23:25:42 2022 -0300

    Test file showing the wrong behaviour


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

ec35ad5842c0632bcbb61dfc412f629de6a7e2a1
 base/testfiles/github-0778.lvt | 25 +++++++++++++++++++++++++
 base/testfiles/github-0778.tlg | 26 ++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/base/testfiles/github-0778.lvt b/base/testfiles/github-0778.lvt
new file mode 100644
index 00000000..109f47bd
--- /dev/null
+++ b/base/testfiles/github-0778.lvt
@@ -0,0 +1,25 @@
+
+\input{test2e}
+
+\def\test#1{%
+
+% error + defines \csname\endcsname=\long macro:->A.
+\renewcommand#1{A}
+\show#1
+
+% error
+\newcommand#1{B}
+\show#1
+
+\let#1\UNDEFINED
+
+\newenvironment{}{A}{B}
+
+\show#1
+\show\end
+
+}
+
+\START
+{\expandafter}\expandafter\test\csname\endcsname
+\END
diff --git a/base/testfiles/github-0778.tlg b/base/testfiles/github-0778.tlg
new file mode 100644
index 00000000..ffbcf207
--- /dev/null
+++ b/base/testfiles/github-0778.tlg
@@ -0,0 +1,26 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+! LaTeX Error: Command \csname\endcsnameundefined.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ......ndafter}\expandafter\test\csname\endcsname
+Try typing  <return>  to proceed.
+If that doesn't work, type  X <return>  to quit.
+> \csname\endcsname=\long macro:
+->A.
+<argument> \csname\endcsname
+l. ......ndafter}\expandafter\test\csname\endcsname
+> \csname\endcsname=\long macro:
+->B.
+<argument> \csname\endcsname
+l. ......ndafter}\expandafter\test\csname\endcsname
+> \csname\endcsname=\long macro:
+->A.
+<argument> \csname\endcsname
+l. ......ndafter}\expandafter\test\csname\endcsname
+> \end=\long macro:
+->B.
+\test ...onment {}{A}{B} \par \show #1 \show \end 
+                                                  \par 
+l. ......ndafter}\expandafter\test\csname\endcsname





More information about the latex3-commits mailing list.