[latex3-commits] [git/LaTeX3-latex3-latex2e] gh569: Update tests (72099d42)

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


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

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

commit 72099d42f044c45a7d67befee44fc955d036dd2d
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Aug 30 00:22:21 2021 -0300

    Update tests


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

72099d42f044c45a7d67befee44fc955d036dd2d
 base/testfiles-ltcmd/github-569.lvt | 34 +++++++++++++++++++++++++
 base/testfiles-ltcmd/github-569.tlg | 50 +++++++++++++++++++++++++++++++++++++
 2 files changed, 84 insertions(+)

diff --git a/base/testfiles-ltcmd/github-569.lvt b/base/testfiles-ltcmd/github-569.lvt
index bedbeaa9..077035ec 100644
--- a/base/testfiles-ltcmd/github-569.lvt
+++ b/base/testfiles-ltcmd/github-569.lvt
@@ -29,4 +29,38 @@
 \bar{a}[b]|c|{g}[h;i;j]^_d^e(boo)
 \bar{a}{g}(boo)
 
+
+\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}}
+
+\typeout{\string\foo=\meaning\foo}
+\begin{foo}{a}[b]|c|{g}[h;i;j]^_d^e
+boo
+\end{foo}
+\begin{foo}{a}{g}
+boo
+\end{foo}
+
+\DeclareCommandCopy\bar\foo
+\DeclareCommandCopy\endbar\endfoo
+
+\typeout{\string\bar=\meaning\bar}
+\begin{bar}{a}[b]|c|{g}[h;i;j]^_d^e
+boo
+\end{bar}
+\begin{bar}{a}{g}
+boo
+\end{bar}
+
+\DeclareCommandCopy\baz\endfoo
+
+\DeclareDocumentEnvironment{foo}{o}{\typeout{FOO(#1)CODE}}{\typeout{FOO(#1)END}}
+
+\begin{foo}[aaa]
+\end{foo}
+
+\foo[bbb]
+\endfoo
+
 \END
diff --git a/base/testfiles-ltcmd/github-569.tlg b/base/testfiles-ltcmd/github-569.tlg
index eded907d..cebd05e3 100644
--- a/base/testfiles-ltcmd/github-569.tlg
+++ b/base/testfiles-ltcmd/github-569.tlg
@@ -76,3 +76,53 @@ Don't change this file in any respect.
 ##7:-NoValue-
 ##8:-NoValue-
 ##9:boo
+\foo=\protected macro:->\__cmd_start_env:nnnnn {moD||{bar}mO{b;a;z}+t^+e{_^}+b}{foo}{\__cmd_grab_m_1:w \__cmd_grab_D:w []\__cmd_grab_D:w ||\__cmd_grab_m_1:w \__cmd_grab_D:w []\__cmd_grab_t:w ^\__cmd_grab_E_long:w {_^}\__cmd_grab_b_long:w }{\c_novalue_tl \c_novalue_tl {\prg_do_nothing: bar}\c_novalue_tl {\prg_do_nothing: b;a;z}\c_novalue_tl \c_novalue_tl \c_novalue_tl \c_novalue_tl }{}
+##1:a
+##2:b
+##3:c
+##4:g
+##5:h;i;j
+##6:\BooleanTrue 
+##7:d
+##8:e
+##9:boo
+##1:a
+##2:-NoValue-
+##3:bar
+##4:g
+##5:-NoValue-
+##6:\BooleanFalse 
+##7:-NoValue-
+##8:-NoValue-
+##9:boo
+\bar=\protected macro:->\__cmd_start_env:nnnnn {moD||{bar}mO{b;a;z}+t^+e{_^}+b}{bar}{\__cmd_grab_m_1:w \__cmd_grab_D:w []\__cmd_grab_D:w ||\__cmd_grab_m_1:w \__cmd_grab_D:w []\__cmd_grab_t:w ^\__cmd_grab_E_long:w {_^}\__cmd_grab_b_long:w }{\c_novalue_tl \c_novalue_tl {\prg_do_nothing: bar}\c_novalue_tl {\prg_do_nothing: b;a;z}\c_novalue_tl \c_novalue_tl \c_novalue_tl \c_novalue_tl }{}
+##1:a
+##2:b
+##3:c
+##4:g
+##5:h;i;j
+##6:\BooleanTrue 
+##7:d
+##8:e
+##9:boo
+##1:a
+##2:-NoValue-
+##3:bar
+##4:g
+##5:-NoValue-
+##6:\BooleanFalse 
+##7:-NoValue-
+##8:-NoValue-
+##9:boo
+! LaTeX cmd Error: Error while copying command \endfoo:
+(cmd)              Target command is not named \end<name>.
+Type <return> to continue.
+ ...                                              
+l. ...\DeclareCommandCopy\baz\endfoo
+LaTeX does not know anything more about this error, sorry.
+Try typing <return> to proceed.
+If that doesn't work, type X <return> to quit.
+FOO(aaa)CODE
+FOO(aaa)END
+FOO(bbb)CODE
+FOO(bbb)END





More information about the latex3-commits mailing list.