[latex3-commits] [git/LaTeX3-latex3-latex2e] gh606: Reorder test (400206ee)
PhelypeOleinik
phelype.oleinik at latex-project.org
Fri Sep 3 07:50:08 CEST 2021
Repository : https://github.com/latex3/latex2e
On branch : gh606
Link : https://github.com/latex3/latex2e/commit/400206ee3f462eca875a817b9cd300c1ac60d052
>---------------------------------------------------------------
commit 400206ee3f462eca875a817b9cd300c1ac60d052
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Fri Sep 3 02:50:08 2021 -0300
Reorder test
>---------------------------------------------------------------
400206ee3f462eca875a817b9cd300c1ac60d052
base/testfiles-lthooks/lthooks-027.lvt | 18 +++++++++---------
base/testfiles-lthooks/lthooks-027.tlg | 10 +++++-----
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/base/testfiles-lthooks/lthooks-027.lvt b/base/testfiles-lthooks/lthooks-027.lvt
index 146dd6d9..e6590d7a 100644
--- a/base/testfiles-lthooks/lthooks-027.lvt
+++ b/base/testfiles-lthooks/lthooks-027.lvt
@@ -22,9 +22,9 @@
\hook_new:n { A }
\hook_gput_code:nnn { A } { . } { \message{aaa} }
\hook_gset_rule:nnnn { A } { . } { after } { x }
+ \hook_log:n { A }
\hook_use_once:n { A }
\hook_gput_code:nnn { A } { x } { \message{bbb} }
- \hook_log:n { A }
}
\ExplSyntaxOff
@@ -32,10 +32,10 @@
{
\NewHook { -{hook}- }
\AddToHook { -{hook}- } {\message{aaa}}
- \DeclareHookRule { A } { . } { after } { x }
+ \DeclareHookRule { -{hook}- } { . } { after } { x }
+ \LogHook { -{hook}- }
\UseOneTimeHook {-{hook}-}
\AddToHook { -{hook}- } [ x ] {\message{bbb}}
- \LogHook { -{hook}- }
}
\TEST { Macro with argument (expect 'my-bar.xxx' and 'after'): }
@@ -48,10 +48,10 @@
{
\NewHook { grüße }
\AddToHook { grüße } {\message{aaa}}
- \DeclareHookRule { A } { . } { after } { x }
+ \DeclareHookRule { grüße } { . } { after } { x }
+ \LogHook { grüße }
\UseOneTimeHook {grüße}
\AddToHook { grüße } [ x ] {\message{bbb}}
- \LogHook { grüße }
}
\def\hookname{鉤}
@@ -60,10 +60,10 @@
{
\NewHook { \hookname }
\AddToHook { \hookname } {\message{aaa}}
- \DeclareHookRule { A } { . } { after } { x }
+ \DeclareHookRule { \hookname } { . } { after } { x }
+ \LogHook { \hookname }
\UseOneTimeHook {\hookname}
\AddToHook { \hookname } [ x ] {\message{bbb}}
- \LogHook { \hookname }
}
\def\hookname{ <-with spaces-> }
@@ -72,10 +72,10 @@
{
\NewHook { \hookname }
\AddToHook { \hookname } {\message{aaa}}
- \DeclareHookRule { A } { . } { after } { x }
+ \DeclareHookRule { \hookname } { . } { after } { x }
+ \LogHook { \hookname }
\UseOneTimeHook {\hookname}
\AddToHook { \hookname } [ x ] {\message{bbb}}
- \LogHook { \hookname }
}
\end{document}
diff --git a/base/testfiles-lthooks/lthooks-027.tlg b/base/testfiles-lthooks/lthooks-027.tlg
index 5d010f5a..d6e5ba55 100644
--- a/base/testfiles-lthooks/lthooks-027.tlg
+++ b/base/testfiles-lthooks/lthooks-027.tlg
@@ -3,7 +3,6 @@ Don't change this file in any respect.
============================================================
TEST 1: Using stuff once (expect 'aaa bbb'):
============================================================
-aaa bbb
-> The hook 'A':
> Code chunks:
> ---
@@ -15,11 +14,11 @@ aaa bbb
> ---
> Execution order:
> ---.
+aaa bbb
============================================================
============================================================
TEST 2: Braces in hook names (expect 'aaa bbb'):
============================================================
-aaa bbb
-> The hook '-{hook}-':
> Code chunks:
> ---
@@ -31,6 +30,7 @@ aaa bbb
> ---
> Execution order:
> ---.
+aaa bbb
============================================================
============================================================
TEST 3: Macro with argument (expect 'my-bar.xxx' and 'after'):
@@ -43,7 +43,6 @@ File: after
============================================================
TEST 4: Unicode hook names (expect 'aaa bbb'):
============================================================
-aaa bbb
-> The hook 'gr^^c3^^bc^^c3^^9fe':
> Code chunks:
> ---
@@ -55,11 +54,11 @@ aaa bbb
> ---
> Execution order:
> ---.
+aaa bbb
============================================================
============================================================
TEST 5: Macros in hook names (expect 'aaa bbb'):
============================================================
-aaa bbb
-> The hook '^^e9^^89^^a4':
> Code chunks:
> ---
@@ -71,11 +70,11 @@ aaa bbb
> ---
> Execution order:
> ---.
+aaa bbb
============================================================
============================================================
TEST 6: Spaces aren't trimmed if hidden in a macro (expect 'aaa bbb'):
============================================================
-aaa bbb
-> The hook ' <-with spaces-> ':
> Code chunks:
> ---
@@ -87,5 +86,6 @@ aaa bbb
> ---
> Execution order:
> ---.
+aaa bbb
============================================================
(lthooks-027.aux)
More information about the latex3-commits
mailing list.