[latex3-commits] [git/LaTeX3-latex3-latex3] master: tl_head and tl_tail in halign test (7b61ecf35)

Bruno Le Floch blflatex at gmail.com
Tue Oct 27 09:11:58 CET 2020


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/7b61ecf3592b084e30668a590143a21b47bfeeba

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

commit 7b61ecf3592b084e30668a590143a21b47bfeeba
Author: Jonathan Spratte <jspratte at yahoo.de>
Date:   Tue Aug 18 21:12:29 2020 +0200

    tl_head and tl_tail in halign test


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

7b61ecf3592b084e30668a590143a21b47bfeeba
 l3kernel/testfiles/m3tl009.lvt | 20 +++++++++++++++++++-
 l3kernel/testfiles/m3tl009.tlg | 13 +++++++++++++
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/l3kernel/testfiles/m3tl009.lvt b/l3kernel/testfiles/m3tl009.lvt
index 83001bfc0..7c764c0dc 100644
--- a/l3kernel/testfiles/m3tl009.lvt
+++ b/l3kernel/testfiles/m3tl009.lvt
@@ -18,7 +18,7 @@
 %
 %   \tl_map_function:nN , \tl_map_inline:nn , \tl_map_variable:nNn ,
 %   \tl_count:n , \tl_reverse_items:n , \tl_trim_spaces:n ,
-%   \tl_head:n , \tl_tail:n , \tl_if_head_eq_meaning:nNTF ,
+%   \tl_tail:n , \tl_if_head_eq_meaning:nNTF ,
 %   \tl_if_head_eq_charcode:nNTF , \tl_if_head_eq_catcode:nNTF ,
 %   \tl_item:nn
 %
@@ -228,4 +228,22 @@
     }
 }
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\TEST{tl~head~and~tail}
+  {
+    \vbox_set:Nn \l_test_box
+      {
+        \tex_halign:D { \TYPE{0} # \TYPE{2} & \TYPE{3} # \TYPE{4} \tex_cr:D
+          \tl_head:n { {} & \ERROR }
+          \tl_head:n { {} & \ERROR }
+          \TYPE{1}
+          \tl_tail:n { ~ & \TRUE }
+          \tl_tail:n { & }
+          \tl_tail:n { \ERROR & \TRUE }
+          \tl_tail:n { & \TRUE \TRUE }
+          \tex_cr:D
+        }
+      }
+  }
+
 \END
diff --git a/l3kernel/testfiles/m3tl009.tlg b/l3kernel/testfiles/m3tl009.tlg
index dc4a73973..725dbc611 100644
--- a/l3kernel/testfiles/m3tl009.tlg
+++ b/l3kernel/testfiles/m3tl009.tlg
@@ -122,3 +122,16 @@ FALSE
 FALSE
 4
 ============================================================
+============================================================
+TEST 10: tl head and tail
+============================================================
+0
+1
+TRUE
+2
+3
+TRUE
+TRUE
+TRUE
+4
+============================================================





More information about the latex3-commits mailing list.