[latex3-commits] [l3svn] r7066 - Add test of how \csname\endcsname is turned to a string

noreply at latex-project.org noreply at latex-project.org
Sat Apr 8 14:09:18 CEST 2017


Author: bruno
Date: 2017-04-08 14:09:17 +0200 (Sat, 08 Apr 2017)
New Revision: 7066

Modified:
   trunk/l3kernel/testfiles/m3tlist002.lvt
   trunk/l3kernel/testfiles/m3tlist002.tlg
Log:
Add test of how \csname\endcsname is turned to a string


Modified: trunk/l3kernel/testfiles/m3tlist002.lvt
===================================================================
--- trunk/l3kernel/testfiles/m3tlist002.lvt	2017-04-08 00:47:37 UTC (rev 7065)
+++ trunk/l3kernel/testfiles/m3tlist002.lvt	2017-04-08 12:09:17 UTC (rev 7066)
@@ -273,5 +273,13 @@
   \tl_if_head_eq_catcode:nNTF {###} # {\TRUE}{\FALSE} \NEWLINE
 }
 
+% LuaTeX might change the outcome of turning \csname\endcsname to a string
+\TEST{tl_if_empty}{
+  \TYPE { \exp_args:No \tl_to_str:n { \cs:w \cs_end: } }
+  \int_set:Nn \tex_escapechar:D { -1 }
+  \TYPE { \exp_args:No \tl_to_str:n { \cs:w \cs_end: } }
+  \exp_args:Nc \tl_if_empty:nTF { } {\TRUE}{\FALSE}
+}
+
 \END
 

Modified: trunk/l3kernel/testfiles/m3tlist002.tlg
===================================================================
--- trunk/l3kernel/testfiles/m3tlist002.tlg	2017-04-08 00:47:37 UTC (rev 7065)
+++ trunk/l3kernel/testfiles/m3tlist002.tlg	2017-04-08 12:09:17 UTC (rev 7066)
@@ -191,3 +191,10 @@
 TRUE
 TRUE
 ============================================================
+============================================================
+TEST 20: tl_if_empty
+============================================================
+\csname\endcsname
+csnameendcsname 
+FALSE
+============================================================



More information about the latex3-commits mailing list