[latex3-commits] [git/LaTeX3-latex3-latex2e] cmd: Update luatex test files (9513d0a7)

PhelypeOleinik phelype.oleinik at latex-project.org
Wed Jan 27 01:14:58 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : cmd
Link       : https://github.com/latex3/latex2e/commit/9513d0a7e68c9439199421538e3ad2a7bd27ba76

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

commit 9513d0a7e68c9439199421538e3ad2a7bd27ba76
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Tue Jan 26 21:14:58 2021 -0300

    Update luatex test files
    
    Seems like I forgot these, but why didn't Travis fail?


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

9513d0a7e68c9439199421538e3ad2a7bd27ba76
 base/testfiles-ltcmd/ltcmd002.luatex.tlg |  95 +++--------------------
 base/testfiles-ltcmd/ltcmd004.luatex.tlg | 128 ++++++-------------------------
 2 files changed, 31 insertions(+), 192 deletions(-)

diff --git a/base/testfiles-ltcmd/ltcmd002.luatex.tlg b/base/testfiles-ltcmd/ltcmd002.luatex.tlg
index b7b5c0ab..b3eb65ef 100644
--- a/base/testfiles-ltcmd/ltcmd002.luatex.tlg
+++ b/base/testfiles-ltcmd/ltcmd002.luatex.tlg
@@ -83,84 +83,7 @@ control sequence to too much text. How can we recover?
 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)
-(d)(e)(default)
-(d)(e)(text)
-(d)(e)(text)
-(g )(h)(i)
-(j)(h)(e)
-()(h)(e)
-============================================================
-============================================================
-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.
-<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.
-! Extra }, or forgotten \endgroup.
-<argument> ...\foo {gom}{\TYPE {(##1)(##2)(##3)}}\foo {\par }
-                                                  bc\DeclareDocumentCommand ...
-l. ...}
-I've deleted a group-closing symbol because it seems to be
-spurious, as in `$x}$'. But perhaps the } is legitimate and
-you forgot something else, as in `\hbox{$x}'. In such cases
-the way to recover is to insert both the forgotten and the
-deleted material, e.g., by typing `I$}'.
-Runaway argument?
-{
-! Paragraph ended before \foo  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.
-! Extra }, or forgotten \endgroup.
-<argument> ...efault}}{\TYPE {(##1)(##2)(##3)}}\foo de{\par }
-                                                  \DeclareDocumentCommand \f...
-l. ...}
-I've deleted a group-closing symbol because it seems to be
-spurious, as in `$x}$'. But perhaps the } is legitimate and
-you forgot something else, as in `\hbox{$x}'. In such cases
-the way to recover is to insert both the forgotten and the
-deleted material, e.g., by typing `I$}'.
-Runaway argument?
-g hi
-! Paragraph ended before \foo (arg 1) 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.
-Runaway argument?
-j
-! Paragraph ended before \foo (arg 1) 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.
-============================================================
-============================================================
-TEST 6: Optional argument tests
+TEST 4: Optional argument tests
 ============================================================
 TRUE
 FALSE
@@ -175,7 +98,7 @@ TRUE
 TRUE
 ============================================================
 ============================================================
-TEST 7: Trailing optional arguments
+TEST 5: Trailing optional arguments
 ============================================================
 FALSE
 TRUE
@@ -209,7 +132,7 @@ TRUE
 FALSE
 ============================================================
 ============================================================
-TEST 8: Awkward `NoValue' checks (expect T/F/F/F/F)
+TEST 6: Awkward `NoValue' checks (expect T/F/F/F/F)
 ============================================================
 TRUE
 FALSE
@@ -218,7 +141,7 @@ FALSE
 FALSE
 ============================================================
 ============================================================
-TEST 9: Nested optional arguments
+TEST 7: Nested optional arguments
 ============================================================
 > -NoValue-.
 <recently read> }
@@ -249,7 +172,7 @@ l. ...}
 l. ...}
 ============================================================
 ============================================================
-TEST 10: Processing arguments
+TEST 8: Processing arguments
 ============================================================
 1,2
 -
@@ -259,7 +182,7 @@ TEST 10: Processing arguments
 3,-NoValue-
 ============================================================
 ============================================================
-TEST 11: Optional argument tests expand (expect T/F/F/F/T)
+TEST 9: Optional argument tests expand (expect T/F/F/F/T)
 ============================================================
 > \test=TRUE.
 <recently read> }
@@ -278,7 +201,7 @@ l. ...}
 l. ...}
 ============================================================
 ============================================================
-TEST 12: Fully expandable functions
+TEST 10: Fully expandable functions
 ============================================================
 (a)(b)
 (-NoValue-)(c)
@@ -293,7 +216,7 @@ TEST 12: Fully expandable functions
 (a)(b)(c)(d)
 ============================================================
 ============================================================
-TEST 13: Fully expandable long functions
+TEST 11: Fully expandable long functions
 ============================================================
 (\par )(b)
 (-NoValue-)(\par )
@@ -308,7 +231,7 @@ TEST 13: Fully expandable long functions
 (\par )(\par )(\par )(\par )
 ============================================================
 ============================================================
-TEST 14: More tricky expandable tests
+TEST 12: More tricky expandable tests
 ============================================================
 ()(b)
 ()(b)
diff --git a/base/testfiles-ltcmd/ltcmd004.luatex.tlg b/base/testfiles-ltcmd/ltcmd004.luatex.tlg
index b7d866cb..b189d760 100644
--- a/base/testfiles-ltcmd/ltcmd004.luatex.tlg
+++ b/base/testfiles-ltcmd/ltcmd004.luatex.tlg
@@ -219,18 +219,10 @@ TEST 9: Get and show argument spec
 > \ArgumentSpecification=.
 <recently read> }
 l. ...  }
-|>{\SplitList {;}}m+og|
-> \ArgumentSpecification=>{\SplitList {;}}m+og.
-<recently read> }
-l. ...  }
 ||
 > \ArgumentSpecification=.
 <recently read> }
 l. ...  }
-|vD{$}{$}lu{!}|
-> \ArgumentSpecification=vD{$}{$}lu{!}.
-<recently read> }
-l. ...  }
 ============================================================
 ============================================================
 TEST 10: First argument must be a command
@@ -517,33 +509,7 @@ TEST 11: SplitList
 > {a(b}.
 ============================================================
 ============================================================
-TEST 12: Test ## in argument specification
-============================================================
-! LaTeX3 Error: Missing required argument for command '\foo'.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The current command '\foo' expects an argument starting with '('. LaTeX did
-not find it, and will insert a default value to be processed.
-1|##|\BooleanFalse |{1##}{2##}|...|A|##|C|D
-##|1|\BooleanFalse |{1##}{2##}|...|A|B|C|D
-##|##|\BooleanTrue |{1##}{2##}|...|A|B|C|D
-##|##|\BooleanFalse |{1##}{1}|...|A|B|C|D
-1|2|\BooleanTrue |{3}{4}|...|A|B|C|D
-! LaTeX3 Error: Missing required argument for command '\foo'.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The current command '\foo' expects an argument starting with '('. LaTeX did
-not find it, and will insert a default value to be processed.
-1|##|\BooleanFalse |{1##}{2##}|...|A|##|C|D
-##|1|\BooleanFalse |{1##}{2##}|...|A|B|C|D
-##|##|\BooleanTrue |{1##}{2##}|...|A|B|C|D
-##|##|\BooleanFalse |{1##}{1}|...|A|B|C|D
-1|2|\BooleanTrue |{3}{4}|...|A|B|C|D
-============================================================
-============================================================
-TEST 13: Defaults referring to other arguments
+TEST 12: Defaults referring to other arguments
 ============================================================
 (walk,walked,walked)
 (find,found,found)
@@ -552,21 +518,6 @@ 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 
-! LaTeX3 Error: Defaults of command '\foo' have circular dependency.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The default values of two or more arguments of the command '\foo' depend on
-each other in a way that cannot be resolved.
-{1}{\A }\B {1}{\A }\B {1}{\A }\B {-NoValue-}{\A }\B -NoValue-|{1}{\A }\B {1}{\A }\B {1}{\A }\B {1}{\A }\B -NoValue--NoValue-|{1}{\A }|{1}{\A }\B |\B 
--NoValue-|-NoValue-|{1}{2}||\B 
-\A |{\B }{\C }\D \A |{\B }{\C }|{\B }{\C }\D |\D 
 \A 
 {{\C }{-NoValue-}}{\E }|{\C }{-NoValue-}|\E 
 {\A }{\E }|{{\A }{\E }}{-NoValue-}|\E 
@@ -574,7 +525,7 @@ each other in a way that cannot be resolved.
 {\A }{\B }|{{\A }{\B }}{\D }|\E 
 ============================================================
 ============================================================
-TEST 14: Test ## in expandable argument specification
+TEST 13: Test ## in expandable argument specification
 ============================================================
 ! Undefined control sequence.
 <argument> \LaTeX3 error: 
@@ -591,7 +542,7 @@ and I'll forget about whatever was undefined.
 1|\BooleanTrue |##|2##
 ============================================================
 ============================================================
-TEST 15: Refer to other args (expandable)
+TEST 14: Refer to other args (expandable)
 ============================================================
 ! Undefined control sequence.
 <argument> \LaTeX3 error: 
@@ -619,7 +570,7 @@ and I'll forget about whatever was undefined.
 \A 
 ============================================================
 ============================================================
-TEST 16: Bad arguments
+TEST 15: Bad arguments
 ============================================================
 ! LaTeX3 Error: Unknown argument type 'abc' for the command '\foo'.
 For immediate help type H <return>.
@@ -672,7 +623,7 @@ LaTeX will ignore this entire definition.
 undefined
 ============================================================
 ============================================================
-TEST 17: Optional+mandatory with same delimiter
+TEST 16: 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
@@ -694,16 +645,6 @@ 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.
@@ -720,7 +661,7 @@ LaTeX3 Warning: Since the mandatory argument 'R/r' has the same delimiter '_'
 |{-NoValue-}{-NoValue-}|\BooleanTrue |a|
 ============================================================
 ============================================================
-TEST 18: par in short expandable
+TEST 17: par in short expandable
 ============================================================
 Runaway argument?
 \ERROR 
@@ -745,13 +686,13 @@ My plan is to forget the whole thing and hope for the best.
 \par 
 ============================================================
 ============================================================
-TEST 19: Environments and expansion
+TEST 18: Environments and expansion
 ============================================================
 \A \B \C 
 \A \B \C 
 ============================================================
 ============================================================
-TEST 20: Expandable r type
+TEST 19: 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
@@ -760,7 +701,7 @@ LaTeX3 Warning: Since the mandatory argument 'R/r' has the same delimiter '['
 |a|b|
 ============================================================
 ============================================================
-TEST 21: Expandable e-type argument definitions
+TEST 20: Expandable e-type argument definitions
 ============================================================
 ({-NoValue-}{-NoValue-})(\the re)
 ({\u p}{-NoValue-})(\he re)
@@ -781,7 +722,7 @@ TEST 21: Expandable e-type argument definitions
 ({\B }{\A })(\C )(\D )
 ============================================================
 ============================================================
-TEST 22: Long status of t-type ignored
+TEST 21: Long status of t-type ignored
 ============================================================
 |\BooleanTrue |\BooleanTrue |\par |\par |
 |\BooleanFalse |\BooleanTrue |-NoValue-|\par \A |
@@ -797,56 +738,31 @@ My plan is to forget the whole thing and hope for the best.
 |\BooleanFalse |\BooleanTrue |[\A ]|\B |
 ============================================================
 ============================================================
-TEST 23: Expandable l/u arguments
-============================================================
-|{def}ghi|
-|abc|{def}
-! LaTeX3 Error: Argument type 'l' not available after optional argument for
-(LaTeX3)        expandable command '\C'.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The letter 'l' specifies an argument type which cannot be used in an
-expandable command after an optional argument.
-LaTeX will ignore this entire definition.
-! Undefined control sequence.
-<write> \C 
-   [abc]{def}
-l. ...  }
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-[abc]{def}
-|abc||def|
-============================================================
-============================================================
-TEST 24: Same expandable command with/without defaults
+TEST 22: Same expandable command with/without defaults
 ============================================================
 |a|b|{c}
 |b|c|
 ============================================================
 ============================================================
-TEST 25: Wrongly undefining an xparse command
+TEST 23: 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
+TEST 24: NoValue passed to another command
 ============================================================
 |-NoValue-|B|C|
 ============================================================
 ============================================================
-TEST 27: Two processors
+TEST 25: Two processors
 ============================================================
 Defining \CountArg on line ...
 |2|{5}|
 ============================================================
 ============================================================
-TEST 28: Non-character token delimiters
+TEST 26: Non-character token delimiters
 ============================================================
 abc
 def
@@ -859,7 +775,7 @@ abc/-NoValue-
 -NoValue-/something
 ============================================================
 ============================================================
-TEST 29: Non-character delimiters: delimiters with the same definition
+TEST 27: Non-character delimiters: delimiters with the same definition
 ============================================================
 (abc)
 (-NoValue-)
@@ -879,7 +795,7 @@ Removed: (\){r})
 (l|r)
 ============================================================
 ============================================================
-TEST 30: Non-character delimiters: delimiters \let to the same token
+TEST 28: Non-character delimiters: delimiters \let to the same token
 ============================================================
 (abc)
 (-NoValue-)
@@ -899,7 +815,7 @@ Removed: (\){r})
 (l|r)
 ============================================================
 ============================================================
-TEST 31: Non-character delimiters: forbidden delimiters
+TEST 29: Non-character delimiters: forbidden delimiters
 ============================================================
 ! LaTeX3 Error: Argument delimiter '\(' for the command '\foo' is not allowed.
 For immediate help type H <return>.
@@ -956,7 +872,7 @@ LaTeX will ignore this entire definition.
 (abc)
 ============================================================
 ============================================================
-TEST 32: delimited commands in alignments
+TEST 30: delimited commands in alignments
 ============================================================
 A x y&z
 B x yXz
@@ -965,7 +881,7 @@ D x yXz
 E x y&z
 ============================================================
 ============================================================
-TEST 33: IfBoolean multi token
+TEST 31: IfBoolean multi token
 ============================================================
 ! Undefined control sequence.
 <argument> \LaTeX3 error: 
@@ -998,13 +914,13 @@ and I'll forget about whatever was undefined.
 FALSE
 ============================================================
 ============================================================
-TEST 34: Processor spaces
+TEST 32: Processor spaces
 ============================================================
 |{a}{bcd}|
 > \box_wd:N \l_tmpa_box =0.0pt.
 ============================================================
 ============================================================
-TEST 35: Processor depending on other argument
+TEST 33: Processor depending on other argument
 ============================================================
 |{a}{bcd;e}|1|
 |{a,bcd}{e}|1|





More information about the latex3-commits mailing list.