[latex3-commits] [latex3/latex3] main: Reindent l3kernel tests (b2e63b37b)
github at latex-project.org
github at latex-project.org
Sun Dec 17 20:29:01 CET 2023
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/b2e63b37b10028de3d7ca090274a9e0fd6698086
>---------------------------------------------------------------
commit b2e63b37b10028de3d7ca090274a9e0fd6698086
Author: Yukai Chou <muzimuzhi at gmail.com>
Date: Fri Dec 15 05:00:47 2023 +0800
Reindent l3kernel tests
>---------------------------------------------------------------
b2e63b37b10028de3d7ca090274a9e0fd6698086
l3kernel/testfiles-backend/m3color003.lvt | 16 ++++++++--------
l3kernel/testfiles-backend/m3color004.lvt | 8 ++++----
l3kernel/testfiles/m3coffins001.lvt | 2 +-
l3kernel/testfiles/m3color001.lvt | 26 +++++++++++++-------------
l3kernel/testfiles/m3expl008.lvt | 12 ++++++------
l3kernel/testfiles/m3fp-assign001.lvt | 16 ++++++++--------
l3kernel/testfiles/m3prg002.lvt | 14 +++++++-------
l3kernel/testfiles/m3quark001.lvt | 12 ++++++------
l3kernel/testfiles/m3rand001.lvt | 2 +-
l3kernel/testfiles/m3regex005.lvt | 2 +-
l3kernel/testfiles/m3str-convert002.lvt | 2 +-
l3kernel/testfiles/m3str-convert006.lvt | 2 +-
l3kernel/testfiles/m3text002.lvt | 4 ++--
l3kernel/testfiles/m3text006.lvt | 6 +++---
l3kernel/testfiles/m3tl001.lvt | 14 +++++++-------
l3kernel/testfiles/m3tl010.lvt | 2 +-
l3kernel/testfiles/m3tlist002.lvt | 8 ++++----
17 files changed, 74 insertions(+), 74 deletions(-)
diff --git a/l3kernel/testfiles-backend/m3color003.lvt b/l3kernel/testfiles-backend/m3color003.lvt
index 71db27ade..6a58f69d6 100644
--- a/l3kernel/testfiles-backend/m3color003.lvt
+++ b/l3kernel/testfiles-backend/m3color003.lvt
@@ -85,18 +85,18 @@
\group_begin:
\tl_set:Nn \l_color_fixed_model_tl { cmyk }
\test:n
- {
- \color_select:nn { rgb / cmyk }
- { 0.1 , 0.2 , 0.3 / 0.1 , 0.2 , 0.3 , 0.4 }
- }
+ {
+ \color_select:nn { rgb / cmyk }
+ { 0.1 , 0.2 , 0.3 / 0.1 , 0.2 , 0.3 , 0.4 }
+ }
\group_end:
\group_begin:
\tl_set:Nn \l_color_fixed_model_tl { gray }
\test:n
- {
- \color_select:nn { rgb / cmyk }
- { 0.1 , 0.2 , 0.3 / 0.1 , 0.2 , 0.3 , 0.4 }
- }
+ {
+ \color_select:nn { rgb / cmyk }
+ { 0.1 , 0.2 , 0.3 / 0.1 , 0.2 , 0.3 , 0.4 }
+ }
\group_end:
}
diff --git a/l3kernel/testfiles-backend/m3color004.lvt b/l3kernel/testfiles-backend/m3color004.lvt
index f74ae3b3c..231f90857 100644
--- a/l3kernel/testfiles-backend/m3color004.lvt
+++ b/l3kernel/testfiles-backend/m3color004.lvt
@@ -129,10 +129,10 @@ S= \colormathnn{red}{\int}\limits_1^2 x =
\]
\[
- \begin{array}{lll}
- a &= \colormathnn{red}{1}&b \\
- a &= \colormathnn{red}{1} &b \\
- \end{array}
+ \begin{array}{lll}
+ a &= \colormathnn{red}{1} & b \\
+ a &= \colormathnn{red}{1} & b \\
+ \end{array}
\]
\newpage
diff --git a/l3kernel/testfiles/m3coffins001.lvt b/l3kernel/testfiles/m3coffins001.lvt
index 0714d887d..3fb5054ce 100644
--- a/l3kernel/testfiles/m3coffins001.lvt
+++ b/l3kernel/testfiles/m3coffins001.lvt
@@ -98,7 +98,7 @@
\coffin_mark_handle:Nnnn \0 {l} {b} {red}
\hbox_set:Nn \l_tmpa_coffin
{ \rule{1ex}{1ex}\coffin_typeset:Nnnnn \0 {l} {b} {0pt} {0pt} }
- \box_show:N \l_tmpa_coffin
+ \box_show:N \l_tmpa_coffin
%
\coffin_mark_handle:Nnnn \0 {hc} {vc} {blue}
\hbox_set:Nn \l_tmpa_coffin
diff --git a/l3kernel/testfiles/m3color001.lvt b/l3kernel/testfiles/m3color001.lvt
index 691b80db0..5ba4e322e 100644
--- a/l3kernel/testfiles/m3color001.lvt
+++ b/l3kernel/testfiles/m3color001.lvt
@@ -97,19 +97,19 @@
\TEST { Managing~the~current~color }
{
- \OMIT
- \color_set:nnn { myc } { cmyk } { 0 , 1 , 0.5 , 0 }
- \color_select:n { myc }
- \TIMO
- \color_show:n { . }
- \color_select:n { . }
- \OMIT
- \color_set:nnn { myrc } { rgb / cmyk }
- { 1 , 0 , 0 / 0 , 1 , 0 , 0 }
- \color_select:n { myrc }
- \TIMO
- \color_show:n { . }
- \color_select:n { . }
+ \OMIT
+ \color_set:nnn { myc } { cmyk } { 0 , 1 , 0.5 , 0 }
+ \color_select:n { myc }
+ \TIMO
+ \color_show:n { . }
+ \color_select:n { . }
+ \OMIT
+ \color_set:nnn { myrc } { rgb / cmyk }
+ { 1 , 0 , 0 / 0 , 1 , 0 , 0 }
+ \color_select:n { myrc }
+ \TIMO
+ \color_show:n { . }
+ \color_select:n { . }
}
\TEST { Color~expression~special~cases }
diff --git a/l3kernel/testfiles/m3expl008.lvt b/l3kernel/testfiles/m3expl008.lvt
index c49b9f532..22812f05e 100644
--- a/l3kernel/testfiles/m3expl008.lvt
+++ b/l3kernel/testfiles/m3expl008.lvt
@@ -20,14 +20,14 @@
\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@@{%
+ \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 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\@expl at pop@filename@@{%
+ \let\@expl at pop@filename@@\UNDEFINED}}%
}
\def\DefineExplHooks{%
\def\@expl at sys@load at backend@@{}%
diff --git a/l3kernel/testfiles/m3fp-assign001.lvt b/l3kernel/testfiles/m3fp-assign001.lvt
index 55f351461..5eace08ae 100644
--- a/l3kernel/testfiles/m3fp-assign001.lvt
+++ b/l3kernel/testfiles/m3fp-assign001.lvt
@@ -18,14 +18,14 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\TEST{Creating~new~fps}{ % 1
- \fp_new:N \l_A_fp
- \fp_new:c { l_A_fp }
- \fp_new:c { l_B_fp }
- \fp_new:N \g_A_fp
- \fp_new:c { g_B_fp }
- \fp_log:N \l_A_fp
- \fp_log:N \g_A_fp
- \fp_log:N \l_B_fp
+ \fp_new:N \l_A_fp
+ \fp_new:c { l_A_fp }
+ \fp_new:c { l_B_fp }
+ \fp_new:N \g_A_fp
+ \fp_new:c { g_B_fp }
+ \fp_log:N \l_A_fp
+ \fp_log:N \g_A_fp
+ \fp_log:N \l_B_fp
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/l3kernel/testfiles/m3prg002.lvt b/l3kernel/testfiles/m3prg002.lvt
index bd2fdf888..0d1d537cc 100644
--- a/l3kernel/testfiles/m3prg002.lvt
+++ b/l3kernel/testfiles/m3prg002.lvt
@@ -70,13 +70,13 @@
\bool_set_false:N \myboolb
\TESTEXP{Boolean~conditionals}{
- \bool_if:NTF \c_true_bool {\TRUE}{\FALSE}
- \NEWLINE
- \bool_if:NTF \c_false_bool {\TRUE}{\FALSE}
- \NEWLINE
- \bool_if:NTF \myboola {\TRUE}{\FALSE}
- \NEWLINE
- \bool_if:NTF \myboolb {\TRUE}{\FALSE}
+ \bool_if:NTF \c_true_bool {\TRUE}{\FALSE}
+ \NEWLINE
+ \bool_if:NTF \c_false_bool {\TRUE}{\FALSE}
+ \NEWLINE
+ \bool_if:NTF \myboola {\TRUE}{\FALSE}
+ \NEWLINE
+ \bool_if:NTF \myboolb {\TRUE}{\FALSE}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/l3kernel/testfiles/m3quark001.lvt b/l3kernel/testfiles/m3quark001.lvt
index bd91ffee2..bc9145db5 100644
--- a/l3kernel/testfiles/m3quark001.lvt
+++ b/l3kernel/testfiles/m3quark001.lvt
@@ -55,15 +55,15 @@
}
\TESTEXP{Checking~for~\q_nil~after~expansion:~expect~"YES~YES~NO~YES"}{
- \quark_if_nil:oTF \q_nil { \YES }{ \ERROR } ~
- \quark_if_nil:oTF \l_tmpa_tl { \YES }{ \ERROR } ~
- \quark_if_nil:oTF \l_tmpb_tl { \ERROR }{ \NO } ~
- \quark_if_nil:oTF {\cs:w q_nil\cs_end:} { \YES }{ \ERROR }
+ \quark_if_nil:oTF \q_nil { \YES }{ \ERROR } ~
+ \quark_if_nil:oTF \l_tmpa_tl { \YES }{ \ERROR } ~
+ \quark_if_nil:oTF \l_tmpb_tl { \ERROR }{ \NO } ~
+ \quark_if_nil:oTF {\cs:w q_nil\cs_end:} { \YES }{ \ERROR }
}
\TESTEXP{Selecting~tokens~before~\q_recursion_stop:~expect~"YES"}{
- \use_none_delimit_by_q_recursion_stop:w \ERROR abc \ERROR \q_recursion_stop
- \use_i_delimit_by_q_recursion_stop:nw \YES \ERROR \ERROR \q_recursion_stop
+ \use_none_delimit_by_q_recursion_stop:w \ERROR abc \ERROR \q_recursion_stop
+ \use_i_delimit_by_q_recursion_stop:nw \YES \ERROR \ERROR \q_recursion_stop
}
% It's hard to test these because errors lead to infinite loops...
diff --git a/l3kernel/testfiles/m3rand001.lvt b/l3kernel/testfiles/m3rand001.lvt
index 79f8002f2..854c263c5 100644
--- a/l3kernel/testfiles/m3rand001.lvt
+++ b/l3kernel/testfiles/m3rand001.lvt
@@ -116,7 +116,7 @@
\TEST { sys~rand~commands }
{
\cs_set_protected:Npn \test:
- { \TYPE { \sys_rand_seed: , \int_rand:nn { 1 } { 100 } } }
+ { \TYPE { \sys_rand_seed: , \int_rand:nn { 1 } { 100 } } }
\sys_gset_rand_seed:n { 1 }
\test:
\group_begin:
diff --git a/l3kernel/testfiles/m3regex005.lvt b/l3kernel/testfiles/m3regex005.lvt
index 6853cfe86..108728596 100644
--- a/l3kernel/testfiles/m3regex005.lvt
+++ b/l3kernel/testfiles/m3regex005.lvt
@@ -65,7 +65,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\TEST { Macro~parameters }
{
- \tl_set:Nn \l_tmpa_tl { aab }
+ \tl_set:Nn \l_tmpa_tl { aab }
\regex_replace_all:nnN { a } { \cP\# } \l_tmpa_tl
\regex_replace_once:nnN { . } { \c{\0} } \l_tmpa_tl
\regex_replace_once:nnN { b } { \c{\cP\# x} } \l_tmpa_tl
diff --git a/l3kernel/testfiles/m3str-convert002.lvt b/l3kernel/testfiles/m3str-convert002.lvt
index 565aa1df5..30017d2ba 100644
--- a/l3kernel/testfiles/m3str-convert002.lvt
+++ b/l3kernel/testfiles/m3str-convert002.lvt
@@ -55,7 +55,7 @@
}
}
}
- % need to test on invalid input
+% need to test on invalid input
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\OMIT
diff --git a/l3kernel/testfiles/m3str-convert006.lvt b/l3kernel/testfiles/m3str-convert006.lvt
index 2d2ab7db7..48815b8fe 100644
--- a/l3kernel/testfiles/m3str-convert006.lvt
+++ b/l3kernel/testfiles/m3str-convert006.lvt
@@ -249,7 +249,7 @@
0111 0144 00F2 00F3 00F4 0151 00F6 015B 0171 00F9 00FA 00FB 00FC 0119 021B 00FF
}
{ 3333 1E1E 00D8 2019 }
- }
+ }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cs_gset:Npn \test:n #1
diff --git a/l3kernel/testfiles/m3text002.lvt b/l3kernel/testfiles/m3text002.lvt
index e394877f8..32ccbecfa 100644
--- a/l3kernel/testfiles/m3text002.lvt
+++ b/l3kernel/testfiles/m3text002.lvt
@@ -150,7 +150,7 @@
\TESTEXP { BCP47~parts }
{
- \text_uppercase:nn { el-monotonic } { άδικος,~κείμενο,~ίριδα }
+ \text_uppercase:nn { el-monotonic } { άδικος,~κείμενο,~ίριδα }
}
\TESTEXP { Armenian }
@@ -345,7 +345,7 @@
\NEWLINE
\text_uppercase:n { \text_lowercase:n { Fußball } }
\NEWLINE
- \text_uppercase:n { \text_lowercase:n { ὈΔΥΣΣΕΎΣ } }
+ \text_uppercase:n { \text_lowercase:n { ὈΔΥΣΣΕΎΣ } }
}
\TESTEXP { Letter-like~commands }
diff --git a/l3kernel/testfiles/m3text006.lvt b/l3kernel/testfiles/m3text006.lvt
index 1be6b519c..8b12cb315 100644
--- a/l3kernel/testfiles/m3text006.lvt
+++ b/l3kernel/testfiles/m3text006.lvt
@@ -97,9 +97,9 @@
% this area is therefore currently not supported
\str_if_in:nnTF {#1} { ExtPict }
{
- \str_if_in:nnTF {#1} { ZWJ_ExtCccZwj }
- { \FALSE }
- { \LONGTYPEOUT {#1} }
+ \str_if_in:nnTF {#1} { ZWJ_ExtCccZwj }
+ { \FALSE }
+ { \LONGTYPEOUT {#1} }
}
{
\str_if_in:nnTF {#1} { UPPER~BLADE~SCISSORS } % Also a pictogram!
diff --git a/l3kernel/testfiles/m3tl001.lvt b/l3kernel/testfiles/m3tl001.lvt
index f0bf26d2a..d74d6c869 100644
--- a/l3kernel/testfiles/m3tl001.lvt
+++ b/l3kernel/testfiles/m3tl001.lvt
@@ -81,8 +81,8 @@
\TEST{clear~ inside~ group:~ expect~ XX~ <empty>}{
{
- \tl_clear_new:N \l_XX_tl
- \tl_gclear_new:N \g_ZZ_tl
+ \tl_clear_new:N \l_XX_tl
+ \tl_gclear_new:N \g_ZZ_tl
}
\tl_log:N \l_XX_tl
\tl_log:N \g_ZZ_tl
@@ -139,11 +139,11 @@
\TEST{testing~ set_eq:~ expect~ abc~ xyz}{
\tl_set:Nn \l_tmpa_tl {abc}
\tl_set:Nn \l_tmpb_tl {xyz}
-{
- \tl_set_eq:NN \l_tmpb_tl \l_tmpa_tl
- \tl_log:N \l_tmpb_tl
-}
-{ \tl_gset_eq:cc {g_ZZ_tl} {l_tmpb_tl} }
+ {
+ \tl_set_eq:NN \l_tmpb_tl \l_tmpa_tl
+ \tl_log:N \l_tmpb_tl
+ }
+ { \tl_gset_eq:cc {g_ZZ_tl} {l_tmpb_tl} }
\tl_log:N \g_ZZ_tl
}
diff --git a/l3kernel/testfiles/m3tl010.lvt b/l3kernel/testfiles/m3tl010.lvt
index 187d4b445..c855d9111 100644
--- a/l3kernel/testfiles/m3tl010.lvt
+++ b/l3kernel/testfiles/m3tl010.lvt
@@ -40,6 +40,6 @@
\tl_log:N \l_B_tl
\tl_log:N \g_A_tl
\tl_log:N \g_B_tl
- }
+ }
\END
diff --git a/l3kernel/testfiles/m3tlist002.lvt b/l3kernel/testfiles/m3tlist002.lvt
index 6177dd9d9..3bbf7aed9 100644
--- a/l3kernel/testfiles/m3tlist002.lvt
+++ b/l3kernel/testfiles/m3tlist002.lvt
@@ -175,10 +175,10 @@
\TEST { Token~list~heads~and~tails~with~par~tokens }
{
- \tl_set:Ne \l_tmpa_tl { \tl_head:n { ab \par } }
- \iow_term:e { \token_to_meaning:N \l_tmpa_tl }
- \tl_set:Ne \l_tmpa_tl { \tl_tail:n { \par ab } }
- \iow_term:e { \token_to_meaning:N \l_tmpa_tl }
+ \tl_set:Ne \l_tmpa_tl { \tl_head:n { ab \par } }
+ \iow_term:e { \token_to_meaning:N \l_tmpa_tl }
+ \tl_set:Ne \l_tmpa_tl { \tl_tail:n { \par ab } }
+ \iow_term:e { \token_to_meaning:N \l_tmpa_tl }
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
More information about the latex3-commits
mailing list.