[latex3-commits] [git/LaTeX3-latex3-latex2e] gh1052: Test file showing wrong behaviour (f3adc81c)
PhelypeOleinik
phelype.oleinik at latex-project.org
Wed Apr 19 05:39:05 CEST 2023
Repository : https://github.com/latex3/latex2e
On branch : gh1052
Link : https://github.com/latex3/latex2e/commit/f3adc81cb60cb62f7a20de71ec4d346f8284f76f
>---------------------------------------------------------------
commit f3adc81cb60cb62f7a20de71ec4d346f8284f76f
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Wed Apr 19 00:39:05 2023 -0300
Test file showing wrong behaviour
>---------------------------------------------------------------
f3adc81cb60cb62f7a20de71ec4d346f8284f76f
base/testfiles-lthooks/github-1052.lvt | 39 +++++++++++++++
base/testfiles-lthooks/github-1052.tlg | 87 ++++++++++++++++++++++++++++++++++
2 files changed, 126 insertions(+)
diff --git a/base/testfiles-lthooks/github-1052.lvt b/base/testfiles-lthooks/github-1052.lvt
new file mode 100644
index 00000000..5c6d5ea1
--- /dev/null
+++ b/base/testfiles-lthooks/github-1052.lvt
@@ -0,0 +1,39 @@
+\input{regression-test}
+
+\documentclass{minimal}
+
+\begin{document}
+
+\START
+
+\ExplSyntaxOn
+\hook_gput_code:nnn { env/foo/before } { label } { \typeout{env/foo/before} }
+\hook_show:n { env/foo/before }
+\hook_use:n { env/foo/before }
+
+\hook_gput_code:nnn { envfoobefore } { label } { \typeout{envfoobefore} }
+\hook_show:n { envfoobefore }
+\hook_new:n { envfoobefore }
+\hook_use:n { envfoobefore }
+
+\hook_gput_next_code:nn { env/foo/after } { \typeout{env/foo/after} }
+\hook_show:n { env/foo/after }
+\hook_use:n { env/foo/after }
+
+\hook_gput_next_code:nn { envfooafter } { \typeout{envfooafter} }
+\hook_show:n { envfooafter }
+\hook_new:n { envfooafter }
+\hook_use:n { envfooafter }
+
+\hook_gput_code:nnn { env/foo/begin } { top-level } { \typeout{env/foo/begin} }
+\hook_show:n { env/foo/begin }
+\hook_use:n { env/foo/begin }
+
+\hook_gput_code:nnn { envfoobegin } { top-level } { \typeout{envfoobegin} }
+\hook_show:n { envfoobegin }
+\hook_new:n { envfoobegin }
+\hook_use:n { envfoobegin }
+
+\ExplSyntaxOff
+
+\END
diff --git a/base/testfiles-lthooks/github-1052.tlg b/base/testfiles-lthooks/github-1052.tlg
new file mode 100644
index 00000000..265b8dad
--- /dev/null
+++ b/base/testfiles-lthooks/github-1052.tlg
@@ -0,0 +1,87 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+-> The generic hook 'env/foo/before':
+> Code chunks:
+> label -> \typeout {env/foo/before}
+> Document-level (top-level) code (executed last):
+> ---
+> Extra code for next invocation:
+> ---
+> Rules:
+> ---
+> Execution order:
+> label.
+<recently read> }
+l. ...\hook_show:n { env/foo/before }
+env/foo/before
+-> The hook 'envfoobefore':
+> The hook is not declared.
+> Code chunks:
+> label -> \typeout {envfoobefore}
+> Document-level (top-level) code:
+> ---
+> Extra code for next invocation:
+> ---
+> Rules:
+> ---
+> Execution order:
+> Not set because the hook is undeclared.
+<recently read> }
+l. ...\hook_show:n { envfoobefore }
+envfoobefore
+-> The generic hook 'env/foo/after':
+> Code chunks:
+> ---
+> Document-level (top-level) code (executed first):
+> ---
+> Extra code for next invocation:
+> -> \typeout {env/foo/after}
+> Rules:
+> ---
+> Execution order (after reversal):
+> ---.
+<recently read> }
+l. ...\hook_show:n { env/foo/after }
+env/foo/after
+-> The hook 'envfooafter':
+> The hook is not declared.
+> Code chunks:
+> Document-level (top-level) code:
+> ---
+> Extra code for next invocation:
+> -> \typeout {envfooafter}
+> Rules:
+> ---
+> Execution order:
+> Not set because the hook is undeclared.
+<recently read> }
+l. ...\hook_show:n { envfooafter }
+-> The generic hook 'env/foo/begin':
+> Code chunks:
+> ---
+> Document-level (top-level) code (executed last):
+> -> \typeout {env/foo/begin}
+> Extra code for next invocation:
+> ---
+> Rules:
+> ---
+> Execution order:
+> ---.
+<recently read> }
+l. ...\hook_show:n { env/foo/begin }
+env/foo/begin
+-> The hook 'envfoobegin':
+> The hook is not declared.
+> Code chunks:
+> ---
+> Document-level (top-level) code:
+> -> \typeout {envfoobegin}
+> Extra code for next invocation:
+> ---
+> Rules:
+> ---
+> Execution order:
+> Not set because the hook is undeclared.
+<recently read> }
+l. ...\hook_show:n { envfoobegin }
+envfoobegin
More information about the latex3-commits
mailing list.