[latex3-commits] [git/LaTeX3-latex3-latex2e] gh569: Add tests for showing environments (d572ad89)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Aug 30 05:56:03 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh569
Link       : https://github.com/latex3/latex2e/commit/d572ad89659528c7e6d1cb871640b79043124af9

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

commit d572ad89659528c7e6d1cb871640b79043124af9
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Aug 30 00:56:03 2021 -0300

    Add tests for showing environments


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

d572ad89659528c7e6d1cb871640b79043124af9
 base/testfiles-ltcmd/github-569b.lvt | 11 ++++++++++
 base/testfiles-ltcmd/github-569b.tlg | 42 ++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/base/testfiles-ltcmd/github-569b.lvt b/base/testfiles-ltcmd/github-569b.lvt
index a0eaec72..ae51728d 100644
--- a/base/testfiles-ltcmd/github-569b.lvt
+++ b/base/testfiles-ltcmd/github-569b.lvt
@@ -9,14 +9,25 @@
 
 \ShowCommand\foo
 
+
 \DeclareExpandableDocumentCommand\foo{moD||{bar}mO{b;a;z}+t^+e{_^}+R(){baz}}
   {\typeout{##1:#1^^J##2:#2^^J##3:#3^^J##4:#4^^J##5:#5^^J##6:#6^^J##7:#7^^J##8:#8^^J##9:#9^^J}}
 
 \ShowCommand\foo
 
+
 \DeclareDocumentCommand\foo{E{_^+-*/}{{A}{B}{C}}}
   {\typeout{##1:#1^^J##2:#2^^J##3:#3^^J##4:#4^^J##5:#5^^J##6:#6^^J}}
 
 \ShowCommand\foo
 
+
+\DeclareDocumentEnvironment{foo}{moD||{bar}mO{b;a;z}+t^+e{_^}+b}
+  {\typeout{##1:#1^^J##2:#2^^J##3:#3^^J##4:#4}}
+  {\typeout{##5:#5^^J##6:#6^^J##7:#7^^J##8:#8^^J##9:#9^^J}}
+
+\ShowCommand\foo
+
+\ShowCommand\endfoo
+
 \END
diff --git a/base/testfiles-ltcmd/github-569b.tlg b/base/testfiles-ltcmd/github-569b.tlg
index d19e9bbb..efabba2d 100644
--- a/base/testfiles-ltcmd/github-569b.tlg
+++ b/base/testfiles-ltcmd/github-569b.tlg
@@ -54,3 +54,45 @@ Don't change this file in any respect.
 ##5:#5
 ##6:#6
 }.
+> \begin{foo}=document environment:
+  #1:m
+  #2:o
+  #3:D||{bar}
+  #4:m
+  #5:O{b;a;z}
+  #6:+t^
+  #7:e_
+  #8:e^
+  #9:+b
+->\typeout {##1:#1
+##2:#2
+##3:#3
+##4:#4}.
+> \end{foo}:
+->\typeout {##5:#5
+##6:#6
+##7:#7
+##8:#8
+##9:#9
+}.
+> \begin{foo}=document environment:
+  #1:m
+  #2:o
+  #3:D||{bar}
+  #4:m
+  #5:O{b;a;z}
+  #6:+t^
+  #7:e_
+  #8:e^
+  #9:+b
+->\typeout {##1:#1
+##2:#2
+##3:#3
+##4:#4}.
+> \end{foo}:
+->\typeout {##5:#5
+##6:#6
+##7:#7
+##8:#8
+##9:#9
+}.





More information about the latex3-commits mailing list.