[latex3-commits] [l3svn] r7388 - Clean up test file
noreply at latex-project.org
noreply at latex-project.org
Mon Jul 17 04:24:52 CEST 2017
Author: bruno
Date: 2017-07-17 04:24:51 +0200 (Mon, 17 Jul 2017)
New Revision: 7388
Modified:
trunk/l3kernel/testfiles/m3token002.luatex.tlg
trunk/l3kernel/testfiles/m3token002.lvt
trunk/l3kernel/testfiles/m3token002.tlg
Log:
Clean up test file
The test was misunderstanding \token_if_space:NTF.
Modified: trunk/l3kernel/testfiles/m3token002.luatex.tlg
===================================================================
--- trunk/l3kernel/testfiles/m3token002.luatex.tlg 2017-07-17 02:15:50 UTC (rev 7387)
+++ trunk/l3kernel/testfiles/m3token002.luatex.tlg 2017-07-17 02:24:51 UTC (rev 7388)
@@ -155,7 +155,7 @@
FALSE
============================================================
============================================================
-TEST 15: token if space TODO BROKEN!!!!
+TEST 15: token if space
============================================================
! Argument of \use_i:nn has an extra }.
<inserted text>
@@ -176,11 +176,31 @@
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
UE\c_space_token \par
+! Argument of \use_i:nn has an extra }.
+<inserted text>
+\par
+l. ...}
+I've run across a `}' that doesn't seem to match anything.
+For example, `\def\a#1{...}' and `\a}' would produce
+this error. If you simply proceed now, the `\par' that
+I've just inserted will cause me to report a runaway
+argument that might be the root of the problem. But if
+your `}' was spurious, just type `2' and it will go away.
+Runaway argument?
+! Paragraph ended before \use_i:nn was complete.
+<to be read again>
+\par
+l. ...}
+I suspect you've forgotten a `}', causing me to apply this
+control sequence to too much text. How can we recover?
+My plan is to forget the whole thing and hope for the best.
+UE\c_space_token \par
FALSE
FALSE
FALSE
FALSE
FALSE
+TRUE
============================================================
============================================================
TEST 16: token if letter
Modified: trunk/l3kernel/testfiles/m3token002.lvt
===================================================================
--- trunk/l3kernel/testfiles/m3token002.lvt 2017-07-17 02:15:50 UTC (rev 7387)
+++ trunk/l3kernel/testfiles/m3token002.lvt 2017-07-17 02:24:51 UTC (rev 7388)
@@ -1,5 +1,5 @@
%
-% Copyright (C) 2009-2012,2014,2015 The LaTeX Project
+% Copyright (C) 2009-2012,2014,2015,2017 The LaTeX Project
%
\documentclass{minimal}
@@ -184,14 +184,15 @@
\char_set_catcode_other:N \-
\cs_set_nopar:Npn \tmp {~}
-\TEST{token~if~space~TODO~BROKEN!!!!}{
+\TEST{token~if~space}{
\TYPE { \token_if_space:NTF ~ {TRUE}{FALSE} }
- \exp_after:wN \token_if_space:NTF \tmp {\TRUE}{\FALSE}
+ \TYPE { \exp_after:wN \token_if_space:NTF \tmp {TRUE}{FALSE} }
\token_if_space:NTF \tmp {\TRUE}{\FALSE}
\token_if_space:NTF \ {\TRUE}{\FALSE}
\token_if_space:NTF \space {\TRUE}{\FALSE}
\token_if_space:NTF # {\TRUE}{\FALSE}
\token_if_space:NTF \par {\TRUE}{\FALSE}
+ \token_if_space:NTF \c_space_token {\TRUE}{\FALSE}
}
\cs_set_nopar:Npn \tmp {x}
Modified: trunk/l3kernel/testfiles/m3token002.tlg
===================================================================
--- trunk/l3kernel/testfiles/m3token002.tlg 2017-07-17 02:15:50 UTC (rev 7387)
+++ trunk/l3kernel/testfiles/m3token002.tlg 2017-07-17 02:24:51 UTC (rev 7388)
@@ -155,7 +155,7 @@
FALSE
============================================================
============================================================
-TEST 15: token if space TODO BROKEN!!!!
+TEST 15: token if space
============================================================
! Argument of \use_i:nn has an extra }.
<inserted text>
@@ -176,11 +176,31 @@
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
UE\c_space_token \par
+! Argument of \use_i:nn has an extra }.
+<inserted text>
+ \par
+l. ...}
+I've run across a `}' that doesn't seem to match anything.
+For example, `\def\a#1{...}' and `\a}' would produce
+this error. If you simply proceed now, the `\par' that
+I've just inserted will cause me to report a runaway
+argument that might be the root of the problem. But if
+your `}' was spurious, just type `2' and it will go away.
+Runaway argument?
+! Paragraph ended before \use_i:nn was complete.
+<to be read again>
+ \par
+l. ...}
+I suspect you've forgotten a `}', causing me to apply this
+control sequence to too much text. How can we recover?
+My plan is to forget the whole thing and hope for the best.
+UE\c_space_token \par
FALSE
FALSE
FALSE
FALSE
FALSE
+TRUE
============================================================
============================================================
TEST 16: token if letter
More information about the latex3-commits
mailing list