[latex3-commits] [git/LaTeX3-latex3-latex2e] gh373: A few more tests (for c464e54) (ebaa213e)

PhelypeOleinik tex.phelype at gmail.com
Thu Aug 20 23:04:57 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : gh373
Link       : https://github.com/latex3/latex2e/commit/ebaa213e62051f46fe612fcd3995c5bcc7fa214c

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

commit ebaa213e62051f46fe612fcd3995c5bcc7fa214c
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Thu Aug 20 18:04:57 2020 -0300

    A few more tests (for c464e54)


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

ebaa213e62051f46fe612fcd3995c5bcc7fa214c
 base/testfiles/github-0239.lvt | 12 ++++++++++++
 base/testfiles/github-0239.tlg | 16 ++++++++++++++++
 base/testfiles/github-0373.lvt |  2 ++
 base/testfiles/github-0373.tlg |  6 ++++++
 4 files changed, 36 insertions(+)

diff --git a/base/testfiles/github-0239.lvt b/base/testfiles/github-0239.lvt
index 1a4f9fbc..00d30217 100644
--- a/base/testfiles/github-0239.lvt
+++ b/base/testfiles/github-0239.lvt
@@ -123,5 +123,17 @@
 
 \test\cmde{\def\cmde#1#2#3#4#5#6#7#8#9{}}
 
+\NewCommandCopy\myfrac\frac
+\show\myfrac
+{\let\protect\show\myfrac}
+
+\let\cmd\relax
+\testt\mycmd{mycmd}\cmd
+  {\newcommand\cmd[9][default]{(#1#2#3#4#5#6#7#8#9)}}
+
+\let\cmd\relax
+\testt\mycmd{mycmd}\cmd
+  {\DeclareRobustCommand\cmd[9][default]{(#1#2#3#4#5#6#7#8#9)}}
+
 \end{document}
 
diff --git a/base/testfiles/github-0239.tlg b/base/testfiles/github-0239.tlg
index ede303da..15c293d0 100644
--- a/base/testfiles/github-0239.tlg
+++ b/base/testfiles/github-0239.tlg
@@ -91,4 +91,20 @@ LaTeX Info: Redefining \cmdc on input line ....
 \tmp =\relax|
 \\tmp=\relax|
 \\tmp =\relax|
+> \myfrac=macro:
+->\protect \myfrac  .
+l. ...\show\myfrac
+> \myfrac =\long macro:
+#1#2->{\begingroup #1\endgroup \over #2}.
+\myfrac ->\protect \myfrac  
+l. ...{\let\protect\show\myfrac
+                               }
+\mycmd=macro:->\@protected at testopt \mycmd \\mycmd {default}|
+\mycmd =\relax|
+\\mycmd=\long macro:[#1]#2#3#4#5#6#7#8#9->(#1#2#3#4#5#6#7#8#9)|
+\\mycmd =\relax|
+\mycmd=macro:->\protect \mycmd  |
+\mycmd =macro:->\@protected at testopt \mycmd  \\mycmd  {default}|
+\\mycmd=\relax|
+\\mycmd =\long macro:[#1]#2#3#4#5#6#7#8#9->(#1#2#3#4#5#6#7#8#9)|
 (github-0239.aux)
diff --git a/base/testfiles/github-0373.lvt b/base/testfiles/github-0373.lvt
index 21993a07..166d4551 100644
--- a/base/testfiles/github-0373.lvt
+++ b/base/testfiles/github-0373.lvt
@@ -124,5 +124,7 @@
 
 \escapechar92
 
+\ShowCommand\frac
+
 \end{document}
 
diff --git a/base/testfiles/github-0373.tlg b/base/testfiles/github-0373.tlg
index a7479ad0..31e0324b 100644
--- a/base/testfiles/github-0373.tlg
+++ b/base/testfiles/github-0373.tlg
@@ -157,4 +157,10 @@ l. ...\test\cmde{\def\cmde#1#2#3#4#5#6#7#8#9{}}
 [#1]->boo.
 <recently read> }
 l. ...\ShowCommand\cmda
+> \frac=robust macro:
+->\protect \frac  .
+> \frac =\long macro:
+#1#2->{\begingroup #1\endgroup \over #2}.
+<argument> \frac  
+l. ...\ShowCommand\frac
 (github-0373.aux)





More information about the latex3-commits mailing list.