[latex3-commits] [git/LaTeX3-latex3-latex3] earlier-expl3: Test files for 1d163360 and c1cbabb2 (e46bf12a1)
PhelypeOleinik
tex.phelype at gmail.com
Sat Jun 6 01:58:59 CEST 2020
Repository : https://github.com/latex3/latex3
On branch : earlier-expl3
Link : https://github.com/latex3/latex3/commit/e46bf12a1f7846e183eb3eb5afa7821ad1512f9a
>---------------------------------------------------------------
commit e46bf12a1f7846e183eb3eb5afa7821ad1512f9a
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date: Fri Jun 5 20:58:59 2020 -0300
Test files for 1d163360 and c1cbabb2
>---------------------------------------------------------------
e46bf12a1f7846e183eb3eb5afa7821ad1512f9a
l3kernel/testfiles/m3expl008.luatex.tlg | 24 +++++++++++
l3kernel/testfiles/m3expl008.lvt | 72 +++++++++++++++++++++++++++++++++
l3kernel/testfiles/m3expl008.tlg | 20 +++++++++
3 files changed, 116 insertions(+)
diff --git a/l3kernel/testfiles/m3expl008.luatex.tlg b/l3kernel/testfiles/m3expl008.luatex.tlg
new file mode 100644
index 000000000..7d7b854ce
--- /dev/null
+++ b/l3kernel/testfiles/m3expl008.luatex.tlg
@@ -0,0 +1,24 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+Author: Phelype Oleinik
+> \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup .
+\showdocaux ... #2\ignorespaces ->\showtokens {#1}
+l. ...\ShowDocument
+> \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup \@expl at sys@load at bac
+kend@@ \begingroup \endgroup .
+\showdocaux ... #2\ignorespaces ->\showtokens {#1}
+l. ...\ShowDocument
+> \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup \@expl at sys@load at bac
+kend@@ \begingroup \endgroup .
+\showdocaux ... #2\ignorespaces ->\showtokens {#1}
+l. ...\ShowDocument
+(expl3.ltx)
+> \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup \@expl at sys@load at bac
+kend@@ \begingroup \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup .
+\showdocaux ... #2\ignorespaces ->\showtokens {#1}
+l. ...\ShowDocument
+(expl3.ltx)
+> \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup \@expl at sys@load at bac
+kend@@ \begingroup \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup .
+\showdocaux ... #2\ignorespaces ->\showtokens {#1}
+l. ...\ShowDocument
diff --git a/l3kernel/testfiles/m3expl008.lvt b/l3kernel/testfiles/m3expl008.lvt
new file mode 100644
index 000000000..6f578e006
--- /dev/null
+++ b/l3kernel/testfiles/m3expl008.lvt
@@ -0,0 +1,72 @@
+%
+% Copyright (C) 2020 The LaTeX3 Project
+%
+
+% \RequirePackage[enable-debug,check-declarations]{expl3}
+\ExplSyntaxOn
+\sys_load_debug:
+\debug_on:n { log-functions }
+\ExplSyntaxOff
+\input{regression-test}
+
+\START
+\AUTHOR{Phelype Oleinik}
+
+% Beware of the code.
+
+% Trying to emulate and test the four possible cases detailed in the
+% description of \@expl at sys@load at backend@@@@ in expl.dtx.
+
+\makeatletter
+\def\UndefineExplHooks{%
+ \let\@expl at sys@load at backend@@\UNDEFINED
+ \def\@expl at push@filename@@{%
+ \def\@expl at push@filename@@{%
+ \let\@expl at push@filename@@\UNDEFINED}}%
+ \def\@expl at push@filename at aux@@{%
+ \def\@expl at push@filename at aux@@{%
+ \let\@expl at push@filename at aux@@\UNDEFINED}}%
+ \def\@expl at pop@filename@@{%
+ \def\@expl at pop@filename@@{%
+ \let\@expl at pop@filename@@\UNDEFINED}}%
+ }
+\def\DefineExplHooks{%
+ \def\@expl at sys@load at backend@@{}%
+ \def\@expl at push@filename@@{}%
+ \def\@expl at push@filename at aux@@{}%
+ \def\@expl at pop@filename@@{}%
+ }
+\def\ShowDocument{%
+ \expandafter\showdocaux\document}
+\def\showdocaux#1\ifx#2\ignorespaces{%
+ \showtokens{#1}}
+
+\ShowDocument
+
+% First case, package mode and LaTeX2e without expl3:
+\UndefineExplHooks
+\OMIT % avoid engine-specific logging
+\RequirePackage{expl3}
+\TIMO
+
+\ShowDocument
+
+% Second case, package mode and LaTeX2e with expl3 preloaded:
+\DefineExplHooks
+\RequirePackage{expl3}
+
+\ShowDocument
+
+% Third case, 2ekernel mode and LaTeX2e without expl3:
+\UndefineExplHooks
+\input{expl3.ltx}
+
+\ShowDocument
+
+% Fourth case, 2ekernel mode and LaTeX2e with expl3 preloaded:
+\DefineExplHooks
+\input{expl3.ltx}
+
+\ShowDocument
+
+\END
diff --git a/l3kernel/testfiles/m3expl008.tlg b/l3kernel/testfiles/m3expl008.tlg
new file mode 100644
index 000000000..38a3ae081
--- /dev/null
+++ b/l3kernel/testfiles/m3expl008.tlg
@@ -0,0 +1,20 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+Author: Phelype Oleinik
+> \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup .
+\showdocaux ... #2\ignorespaces ->\showtokens {#1}
+l. ...\ShowDocument
+> \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup .
+\showdocaux ... #2\ignorespaces ->\showtokens {#1}
+l. ...\ShowDocument
+> \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup .
+\showdocaux ... #2\ignorespaces ->\showtokens {#1}
+l. ...\ShowDocument
+(expl3.ltx)
+> \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup .
+\showdocaux ... #2\ignorespaces ->\showtokens {#1}
+l. ...\ShowDocument
+(expl3.ltx)
+> \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup \@expl at sys@load at backend@@ \begingroup \endgroup .
+\showdocaux ... #2\ignorespaces ->\showtokens {#1}
+l. ...\ShowDocument
More information about the latex3-commits
mailing list.