[latex3-commits] [git/LaTeX3-latex3-latex3] master: more tl_head and tl_tail tests (afd1614ff)

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/afd1614ffa5296a03267d0ddfdf15eb679579660

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

commit afd1614ffa5296a03267d0ddfdf15eb679579660
Author: Jonathan Spratte <jspratte at yahoo.de>
Date:   Tue Aug 18 21:22:26 2020 +0200

    more tl_head and tl_tail tests


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

afd1614ffa5296a03267d0ddfdf15eb679579660
 l3kernel/testfiles/m3tlist002.lvt | 9 +++++++++
 l3kernel/testfiles/m3tlist002.tlg | 7 +++++++
 2 files changed, 16 insertions(+)

diff --git a/l3kernel/testfiles/m3tlist002.lvt b/l3kernel/testfiles/m3tlist002.lvt
index f8824403c..fa3c06303 100644
--- a/l3kernel/testfiles/m3tlist002.lvt
+++ b/l3kernel/testfiles/m3tlist002.lvt
@@ -159,6 +159,9 @@
     \tl_head:n { ~ abc } \NEWLINE
     \tl_head:n { ~a~bc } \NEWLINE
     \tl_head:n { # abc \ERROR } \NEWLINE
+    \tl_head:n { {abc} abc \ERROR } \NEWLINE
+    \tl_head:n { ~{abc} abc \ERROR } \NEWLINE
+    \tl_head:n { a&bc \ERROR } \NEWLINE
     \tl_head:n { } \NEWLINE
     \tl_head:N \l_tmpc_tl \NEWLINE
     \tl_head:f { \l_tmpc_tl } \NEWLINE
@@ -287,5 +290,11 @@
   \exp_args:Nc \tl_if_empty:nTF { } {\TRUE}{\FALSE}
 }
 
+\TEST{tl_tail~and~tl_head~return~unexpanded}
+  {
+    \tl_set:Nx \l_tmpa_tl { \tl_head:n { \undefined_cs bc } }
+    \tl_set:Nx \l_tmpa_tl { \tl_tail:n { a \undefined_cs c } }
+  }
+
 \END
 
diff --git a/l3kernel/testfiles/m3tlist002.tlg b/l3kernel/testfiles/m3tlist002.tlg
index a159045c1..415ee94bd 100644
--- a/l3kernel/testfiles/m3tlist002.tlg
+++ b/l3kernel/testfiles/m3tlist002.tlg
@@ -101,6 +101,9 @@ a
 a
 a
 ##
+abc
+abc
+a
 a
 a
 bc
@@ -200,3 +203,7 @@ TEST 20: tl_if_empty
 csnameendcsname 
 FALSE
 ============================================================
+============================================================
+TEST 21: tl_tail and tl_head return unexpanded
+============================================================
+============================================================





More information about the latex3-commits mailing list.