[latex3-commits] [git/LaTeX3-latex3-latex2e] hotfix/gh441: Replace set+unset default label by push/pop pairs in tests (413e9406)

PhelypeOleinik phelype.oleinik at latex-project.org
Tue Dec 15 15:21:48 CET 2020


Repository : https://github.com/latex3/latex2e
On branch  : hotfix/gh441
Link       : https://github.com/latex3/latex2e/commit/413e9406b08cb77ed7cdcb2eb33a5430eb414448

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

commit 413e9406b08cb77ed7cdcb2eb33a5430eb414448
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Tue Dec 15 11:21:48 2020 -0300

    Replace set+unset default label by push/pop pairs in tests


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

413e9406b08cb77ed7cdcb2eb33a5430eb414448
 base/testfiles-lthooks/lthooks-008.lvt | 4 ++--
 base/testfiles-lthooks/lthooks-024.lvt | 4 ++--
 base/testfiles-lthooks/lthooks-028.lvt | 5 ++---
 3 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/base/testfiles-lthooks/lthooks-008.lvt b/base/testfiles-lthooks/lthooks-008.lvt
index 343cfefb..be38849f 100644
--- a/base/testfiles-lthooks/lthooks-008.lvt
+++ b/base/testfiles-lthooks/lthooks-008.lvt
@@ -30,9 +30,9 @@
 
 \AtEndDocument{\typeout{on top-level}}
 
-\SetDefaultHookLabel{mypackage}
+\PushDefaultHookLabel{mypackage}
 \AtEndDocument{\typeout{from my package}}
-\SetDefaultHookLabel{top-level}
+\PopDefaultHookLabel
 
 \ExplSyntaxOn
 \prop_log:N \g__hook_enddocument_code_prop
diff --git a/base/testfiles-lthooks/lthooks-024.lvt b/base/testfiles-lthooks/lthooks-024.lvt
index ad0a85cd..f0f11db0 100644
--- a/base/testfiles-lthooks/lthooks-024.lvt
+++ b/base/testfiles-lthooks/lthooks-024.lvt
@@ -40,9 +40,9 @@
 % No \@currname
 \testme{top-level}
 
-\SetDefaultHookLabel{pkg}
+\PushDefaultHookLabel{pkg}
   \testme{pkg}
-\SetDefaultHookLabel{top-level}
+\PopDefaultHookLabel
 
 \OMIT
 
diff --git a/base/testfiles-lthooks/lthooks-028.lvt b/base/testfiles-lthooks/lthooks-028.lvt
index aad1e362..318ad027 100644
--- a/base/testfiles-lthooks/lthooks-028.lvt
+++ b/base/testfiles-lthooks/lthooks-028.lvt
@@ -14,11 +14,10 @@
 \usepackage{\jobname-pkg}
 
 % Expect an error
-\SetDefaultHookLabel{not-top-level}
+\PushDefaultHookLabel{not-top-level}
 \AtBeginDocument[top-level]{\TIMO\typeout{'top-level' with changed label}\OMIT}
+\PopDefaultHookLabel
 
-% Return default label to top-level
-\SetDefaultHookLabel{top-level}
 \AtBeginDocument[top-level]{\TIMO\typeout{'top-level' with default label}\OMIT}
 
 \OMIT





More information about the latex3-commits mailing list.