[latex3-commits] [git/LaTeX3-latex3-latex2e] gh963: Tests (3ad5f3e7)

PhelypeOleinik phelype.oleinik at latex-project.org
Tue Nov 29 05:04:12 CET 2022


Repository : https://github.com/latex3/latex2e
On branch  : gh963
Link       : https://github.com/latex3/latex2e/commit/3ad5f3e73e152ee74ec87c01823686d716806844

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

commit 3ad5f3e73e152ee74ec87c01823686d716806844
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Tue Nov 29 01:04:12 2022 -0300

    Tests


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

3ad5f3e73e152ee74ec87c01823686d716806844
 base/testfiles-ltcmd/github-0963.lvt |  8 ++++++++
 base/testfiles-ltcmd/github-0963.tlg | 26 ++++++++++++++++++++++++--
 2 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/base/testfiles-ltcmd/github-0963.lvt b/base/testfiles-ltcmd/github-0963.lvt
index 1408275e..28008ec7 100644
--- a/base/testfiles-ltcmd/github-0963.lvt
+++ b/base/testfiles-ltcmd/github-0963.lvt
@@ -50,7 +50,15 @@
 \typeout{---------- show 2e environment ----}
 \ShowEnvironment{center}
 
+\typeout{---------- show 2e env with opt ---}
+\renewenvironment{bar}[2][opt]{begin}{end}
+\ShowEnvironment{bar}
+
+\typeout{---------- show 2e env robust -----}
+\ShowEnvironment{bfseries}
+
 \typeout{---------- show l3 environment ----}
 \ShowEnvironment{foo}
 
+
 \END
diff --git a/base/testfiles-ltcmd/github-0963.tlg b/base/testfiles-ltcmd/github-0963.tlg
index 81ae2a1c..08995a15 100644
--- a/base/testfiles-ltcmd/github-0963.tlg
+++ b/base/testfiles-ltcmd/github-0963.tlg
@@ -73,13 +73,35 @@ l. ...\show\group
 l. ...\show\endgroup
 ---------- show 2e environment ----
 > \begin{center}=environment:
-> ->\trivlist \centering \item \relax .
+->\trivlist \centering \item \relax .
 <recently read> }
 l. ...\ShowEnvironment{center}
 > \end{center}:
-> ->\endtrivlist .
+->\endtrivlist .
 <recently read> }
 l. ...\ShowEnvironment{center}
+---------- show 2e env with opt ---
+> \begin{bar}=environment:
+->\@protected at testopt \bar \\bar {opt}.
+> \\bar=\long macro:
+> default #1=opt.
+[#1]#2->begin.
+<recently read> }
+l. ...\ShowEnvironment{bar}
+> \end{bar}:
+->end.
+<recently read> }
+l. ...\ShowEnvironment{bar}
+---------- show 2e env robust -----
+> \begin{bfseries}=environment:
+->\protect \bfseries  .
+> \bfseries =\long macro:
+->\not at math@alphabet \bfseries \mathbf \expand at font@defaults \maybe at update@bfseries at defaults \ifx \f at family \rmdef at ult \fontseries \bfseries at rm \else \ifx \f at family \sfdef at ult \fontseries \bfseries at sf \else \ifx \f at family \ttdef at ult \fontseries \bfseries at tt \else \fontseries \bfdefault \fi \fi \fi \UseHook {bfseries}\selectfont .
+<argument> \bfseries  
+l. ...\ShowEnvironment{bfseries}
+> \end{bfseries}=undefined.
+<recently read> }
+l. ...\ShowEnvironment{bfseries}
 ---------- show l3 environment ----
 > \begin{foo}=document environment:
   #1:m





More information about the latex3-commits mailing list.