[latex3-commits] [git/LaTeX3-latex3-latex3] master: Update test files (2a87bf9ff)

PhelypeOleinik tex.phelype at gmail.com
Mon Feb 24 22:22:17 CET 2020


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/2a87bf9ff0b01f19e08df10f80af58c66ba4d4f5

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

commit 2a87bf9ff0b01f19e08df10f80af58c66ba4d4f5
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Mon Feb 24 18:22:17 2020 -0300

    Update test files


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

2a87bf9ff0b01f19e08df10f80af58c66ba4d4f5
 l3packages/xparse/testfiles/xparse001.tlg | 11 +++++++
 l3packages/xparse/testfiles/xparse002.tlg |  6 ++++
 l3packages/xparse/testfiles/xparse004.tlg | 49 +++++++++++++++++++++++++++++++
 l3packages/xparse/testfiles/xparse005.tlg |  4 +++
 4 files changed, 70 insertions(+)

diff --git a/l3packages/xparse/testfiles/xparse001.tlg b/l3packages/xparse/testfiles/xparse001.tlg
index f2f760e90..4bafd9ce9 100644
--- a/l3packages/xparse/testfiles/xparse001.tlg
+++ b/l3packages/xparse/testfiles/xparse001.tlg
@@ -363,6 +363,8 @@ l. ...}
 > \foo code=\protected\long macro:#1#2#3->(#1)(#2)(#3).
 <recently read> }
 l. ...}
+LaTeX3 Warning: Argument delimiter '\par ' for the command '\foo' should be a
+(LaTeX3)        single character.
 > \foo=\protected macro:->\__xparse_start:nNNnnn {+t\par O{default}mmm}\foo 
 \foo code {\__xparse_grab_t:w \par \__xparse_grab_D:w []\__xparse_grab_m_3:w
 }{\c_novalue_tl {\prg_do_nothing: default}\c_novalue_tl \c_novalue_tl
@@ -380,6 +382,9 @@ l. ...}
 > \foo code=\protected\long macro:#1#2#3#4->(#1)(#2)(#3)(#4).
 <recently read> }
 l. ...}
+LaTeX3 Warning: Since the mandatory argument 'm' has the same delimiter '{' as
+(LaTeX3)        a previous optional argument, it will not be possible to omit
+(LaTeX3)        all optional arguments when calling this command.
 > \foo=\protected macro:->\__xparse_start:nNNnnn {mgom}\foo  \foo code
 {\__xparse_grab_m_1:w \__xparse_grab_G:w \__xparse_grab_D:w
 []\__xparse_grab_m_1:w }{}{}.
@@ -388,6 +393,9 @@ l. ...}
 > \foo code=\protected\long macro:#1#2#3#4->(#1)(#2)(#3)(#4).
 <recently read> }
 l. ...}
+LaTeX3 Warning: Since the mandatory argument 'm' has the same delimiter '{' as
+(LaTeX3)        a previous optional argument, it will not be possible to omit
+(LaTeX3)        all optional arguments when calling this command.
 > \foo=\protected macro:->\__xparse_start:nNNnnn {mG{test}sm}\foo  \foo code
 {\__xparse_grab_m_1:w \__xparse_grab_G:w \__xparse_grab_t:w
 *\__xparse_grab_m_1:w }{\c_novalue_tl {\prg_do_nothing: test}\c_novalue_tl
@@ -520,6 +528,9 @@ l. ...}
 > \foo code=\long macro:#1#2->(#1)(#2).
 <recently read> }
 l. ...}
+LaTeX3 Warning: The command '\foo' was undefined but not the associated
+(LaTeX3)        commands '\foo code' and/or '\foo defaults'. Maybe you tried
+(LaTeX3)        using \let. This may lead to an infinite loop.
 ! LaTeX3 Error: Argument specification 'r()o' for expandable command '\foo'
 (LaTeX3)        ends with optional argument.
 For immediate help type H <return>.
diff --git a/l3packages/xparse/testfiles/xparse002.tlg b/l3packages/xparse/testfiles/xparse002.tlg
index a2d428200..f16e2aad4 100644
--- a/l3packages/xparse/testfiles/xparse002.tlg
+++ b/l3packages/xparse/testfiles/xparse002.tlg
@@ -85,6 +85,9 @@ My plan is to forget the whole thing and hope for the best.
 ============================================================
 TEST 4: More variation of type with valid arguments
 ============================================================
+LaTeX3 Warning: Since the mandatory argument 'm' has the same delimiter '{' as
+(LaTeX3)        a previous optional argument, it will not be possible to omit
+(LaTeX3)        all optional arguments when calling this command.
 (-NoValue-)(-NoValue-)(a)
 (text)(-NoValue-)(b)
 (text)(opt)(text)
@@ -98,6 +101,9 @@ TEST 4: More variation of type with valid arguments
 ============================================================
 TEST 5: Variation of type with invalid arguments
 ============================================================
+LaTeX3 Warning: Since the mandatory argument 'm' has the same delimiter '{' as
+(LaTeX3)        a previous optional argument, it will not be possible to omit
+(LaTeX3)        all optional arguments when calling this command.
 Runaway argument?
 {
 ! Paragraph ended before \foo  was complete.
diff --git a/l3packages/xparse/testfiles/xparse004.tlg b/l3packages/xparse/testfiles/xparse004.tlg
index 7f5f883e9..e5d8c817d 100644
--- a/l3packages/xparse/testfiles/xparse004.tlg
+++ b/l3packages/xparse/testfiles/xparse004.tlg
@@ -552,6 +552,9 @@ TEST 13: Defaults referring to other arguments
 (1cm,a,1cm,b)
 (1cm,a,1cm,b)
 (1cm,a,2cm,b)
+LaTeX3 Warning: Since the mandatory argument 'm' has the same delimiter '{' as
+(LaTeX3)        a previous optional argument, it will not be possible to omit
+(LaTeX3)        all optional arguments when calling this command.
 \A |{\B }{2}\C \A |{\B }{2}|{\B }{2}\C |\C 
 \A |\A |{1}{2}|{1}{2}\B |\B 
 \A |\A |{1}{2}|\B |\C 
@@ -671,17 +674,47 @@ undefined
 ============================================================
 TEST 17: Optional+mandatory with same delimiter
 ============================================================
+LaTeX3 Warning: Since the mandatory argument 'R/r' has the same delimiter '['
+(LaTeX3)        as a previous optional argument, it will not be possible to
+(LaTeX3)        omit all optional arguments when calling this command.
 |a|b|
+LaTeX3 Warning: Since the mandatory argument 'R/r' has the same delimiter '['
+(LaTeX3)        as a previous optional argument, it will not be possible to
+(LaTeX3)        omit all optional arguments when calling this command.
 |a|b|
+LaTeX3 Warning: Since the mandatory argument 'R/r' has the same delimiter ':'
+(LaTeX3)        as a previous optional argument, it will not be possible to
+(LaTeX3)        omit all optional arguments when calling this command.
 |a:b,c|d|
+LaTeX3 Warning: Since the mandatory argument 'R/r' has the same delimiter ':'
+(LaTeX3)        as a previous optional argument, it will not be possible to
+(LaTeX3)        omit all optional arguments when calling this command.
 |a:b,c|d|
+LaTeX3 Warning: Since the mandatory argument 'R/r' has the same delimiter '['
+(LaTeX3)        as a previous optional argument, it will not be possible to
+(LaTeX3)        omit all optional arguments when calling this command.
 |-NoValue-|\BooleanTrue |a|
+LaTeX3 Warning: Since the mandatory argument 'm' has the same delimiter '{' as
+(LaTeX3)        a previous optional argument, it will not be possible to omit
+(LaTeX3)        all optional arguments when calling this command.
 |-NoValue-|a|
 |a|b|
+LaTeX3 Warning: Since the mandatory argument 'm' has the same delimiter '{' as
+(LaTeX3)        a previous optional argument, it will not be possible to omit
+(LaTeX3)        all optional arguments when calling this command.
 ||a|
 |a|b|
+LaTeX3 Warning: Since the mandatory argument 'R/r' has the same delimiter '*'
+(LaTeX3)        as a previous optional argument, it will not be possible to
+(LaTeX3)        omit all optional arguments when calling this command.
 |\BooleanTrue |a|
+LaTeX3 Warning: Since the mandatory argument 'R/r' has the same delimiter '('
+(LaTeX3)        as a previous optional argument, it will not be possible to
+(LaTeX3)        omit all optional arguments when calling this command.
 |\BooleanTrue |a(b)c|\BooleanTrue |
+LaTeX3 Warning: Since the mandatory argument 'R/r' has the same delimiter '_'
+(LaTeX3)        as a previous optional argument, it will not be possible to
+(LaTeX3)        omit all optional arguments when calling this command.
 |{_}{a}|\BooleanFalse ||
 |{a}{-NoValue-}|\BooleanFalse |abc|
 |{-NoValue-}{-NoValue-}|\BooleanTrue |a|
@@ -720,6 +753,9 @@ TEST 19: Environments and expansion
 ============================================================
 TEST 20: Expandable r type
 ============================================================
+LaTeX3 Warning: Since the mandatory argument 'R/r' has the same delimiter '['
+(LaTeX3)        as a previous optional argument, it will not be possible to
+(LaTeX3)        omit all optional arguments when calling this command.
 |a|b|
 |a|b|
 ============================================================
@@ -747,6 +783,8 @@ TEST 21: Expandable e-type argument definitions
 ============================================================
 TEST 22: Long status of t-type ignored
 ============================================================
+LaTeX3 Warning: Argument delimiter '\par ' for the command '\foo' should be a
+(LaTeX3)        single character.
 |\BooleanTrue |\BooleanTrue |\par |\par |
 |\BooleanFalse |\BooleanTrue |-NoValue-|\par \A |
 Runaway argument?
@@ -794,6 +832,9 @@ TEST 24: Same expandable command with/without defaults
 ============================================================
 TEST 25: Wrongly undefining an xparse command
 ============================================================
+LaTeX3 Warning: The command '\foo' was undefined but not the associated
+(LaTeX3)        commands '\foo code' and/or '\foo defaults'. Maybe you tried
+(LaTeX3)        using \let. This may lead to an infinite loop.
 ============================================================
 ============================================================
 TEST 26: NoValue passed to another command
@@ -809,7 +850,15 @@ Defining \CountArg on line ...
 ============================================================
 TEST 28: Non-character token delimiters
 ============================================================
+LaTeX3 Warning: Argument delimiter '\[' for the command '\foo' should be a
+(LaTeX3)        single character.
+LaTeX3 Warning: Argument delimiter '\]' for the command '\foo' should be a
+(LaTeX3)        single character.
 [abc
+LaTeX3 Warning: Argument delimiter '\undefinedFirstArgument ' for the command
+(LaTeX3)        '\foo' should be a single character.
+LaTeX3 Warning: Argument delimiter '\undefinedSecondArgument ' for the command
+(LaTeX3)        '\foo' should be a single character.
 something/-NoValue-
 ============================================================
 ============================================================
diff --git a/l3packages/xparse/testfiles/xparse005.tlg b/l3packages/xparse/testfiles/xparse005.tlg
index 6a8f71f4e..b0670b962 100644
--- a/l3packages/xparse/testfiles/xparse005.tlg
+++ b/l3packages/xparse/testfiles/xparse005.tlg
@@ -299,6 +299,10 @@ The first argument of '\NewDocumentCommand' should be the document command
 that will be defined. The provided argument 'space' contains more than one
 token. Perhaps a backslash is missing?
 LaTeX will ignore this entire definition.
+LaTeX3 Warning: Argument delimiter '\(' for the command '\testA' should be a
+(LaTeX3)        single character.
+LaTeX3 Warning: Argument delimiter '\)' for the command '\testA' should be a
+(LaTeX3)        single character.
 ! LaTeX3 Error: Argument delimiter 'ab' for the command '\testB' should be a
 (LaTeX3)        single character.
 For immediate help type H <return>.





More information about the latex3-commits mailing list.