[latex3-commits] [latex3/latex2e] xparse-arg-spec: Update LuaTeX tests (3f8cc9a3)

github at latex-project.org github at latex-project.org
Sat Aug 19 22:19:19 CEST 2023


Repository : https://github.com/latex3/latex2e
On branch  : xparse-arg-spec
Link       : https://github.com/latex3/latex2e/commit/3f8cc9a38278e297bde310cd6160f3226dd3c789

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

commit 3f8cc9a38278e297bde310cd6160f3226dd3c789
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Aug 19 22:19:19 2023 +0200

    Update LuaTeX tests


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

3f8cc9a38278e297bde310cd6160f3226dd3c789
 base/testfiles-ltcmd/ltcmd004.luatex.tlg | 346 ++-----------------------------
 base/testfiles-ltcmd/ltcmd005.luatex.tlg |  54 +----
 2 files changed, 30 insertions(+), 370 deletions(-)

diff --git a/base/testfiles-ltcmd/ltcmd004.luatex.tlg b/base/testfiles-ltcmd/ltcmd004.luatex.tlg
index b7db7cef..e7c54b3e 100644
--- a/base/testfiles-ltcmd/ltcmd004.luatex.tlg
+++ b/base/testfiles-ltcmd/ltcmd004.luatex.tlg
@@ -210,312 +210,12 @@ TEST 8: Stripping braces in optional args
 ([{bar}])(baz)
 ============================================================
 ============================================================
-TEST 9: Get and show argument spec
-============================================================
-||
-> \ArgumentSpecification=.
-<recently read> }
-l. ...  }
-||
-> \ArgumentSpecification=.
-<recently read> }
-l. ...  }
-============================================================
-============================================================
-TEST 10: First argument must be a command
-============================================================
-! LaTeX cmd Error: First argument of '\DeclareDocumentCommand' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\DeclareDocumentCommand' should be the document command
-that will be defined. The provided argument '\foo !' contains more than one
-token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\NewDocumentCommand' must be a command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\NewDocumentCommand' should be the document command
-that will be defined. The provided argument '\foo !' contains more than one
-token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\RenewDocumentCommand' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\RenewDocumentCommand' should be the document command
-that will be defined. The provided argument '\foo !' contains more than one
-token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\ProvideDocumentCommand' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\ProvideDocumentCommand' should be the document command
-that will be defined. The provided argument '\foo !' contains more than one
-token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\DeclareExpandableDocumentCommand' must
-(cmd)              be a command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\DeclareExpandableDocumentCommand' should be the
-document command that will be defined. The provided argument '\foo !' contains
-more than one token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\NewExpandableDocumentCommand' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\NewExpandableDocumentCommand' should be the document
-command that will be defined. The provided argument '\foo !' contains more
-than one token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\RenewExpandableDocumentCommand' must be
-(cmd)              a command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\RenewExpandableDocumentCommand' should be the document
-command that will be defined. The provided argument '\foo !' contains more
-than one token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\ProvideExpandableDocumentCommand' must
-(cmd)              be a command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\ProvideExpandableDocumentCommand' should be the
-document command that will be defined. The provided argument '\foo !' contains
-more than one token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\GetDocumentCommandArgSpec' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\GetDocumentCommandArgSpec' should be the document
-command that will be defined. The provided argument '\foo !' contains more
-than one token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\ShowDocumentCommandArgSpec' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\ShowDocumentCommandArgSpec' should be the document
-command that will be defined. The provided argument '\foo !' contains more
-than one token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\DeclareDocumentCommand' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\DeclareDocumentCommand' should be the document command
-that will be defined. The provided argument 'foo' contains more than one
-token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\NewDocumentCommand' must be a command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\NewDocumentCommand' should be the document command
-that will be defined. The provided argument 'foo' contains more than one
-token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\RenewDocumentCommand' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\RenewDocumentCommand' should be the document command
-that will be defined. The provided argument 'foo' contains more than one
-token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\ProvideDocumentCommand' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\ProvideDocumentCommand' should be the document command
-that will be defined. The provided argument 'foo' contains more than one
-token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\DeclareExpandableDocumentCommand' must
-(cmd)              be a command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\DeclareExpandableDocumentCommand' should be the
-document command that will be defined. The provided argument 'foo' contains
-more than one token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\NewExpandableDocumentCommand' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\NewExpandableDocumentCommand' should be the document
-command that will be defined. The provided argument 'foo' contains more than
-one token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\RenewExpandableDocumentCommand' must be
-(cmd)              a command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\RenewExpandableDocumentCommand' should be the document
-command that will be defined. The provided argument 'foo' contains more than
-one token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\ProvideExpandableDocumentCommand' must
-(cmd)              be a command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\ProvideExpandableDocumentCommand' should be the
-document command that will be defined. The provided argument 'foo' contains
-more than one token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\GetDocumentCommandArgSpec' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\GetDocumentCommandArgSpec' should be the document
-command that will be defined. The provided argument 'foo' contains more than
-one token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\ShowDocumentCommandArgSpec' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\ShowDocumentCommandArgSpec' should be the document
-command that will be defined. The provided argument 'foo' contains more than
-one token. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\DeclareDocumentCommand' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\DeclareDocumentCommand' should be the document command
-that will be defined. The provided argument '##' is a character. Perhaps a
-backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\NewDocumentCommand' must be a command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\NewDocumentCommand' should be the document command
-that will be defined. The provided argument '##' is a character. Perhaps a
-backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\RenewDocumentCommand' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\RenewDocumentCommand' should be the document command
-that will be defined. The provided argument '##' is a character. Perhaps a
-backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\ProvideDocumentCommand' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\ProvideDocumentCommand' should be the document command
-that will be defined. The provided argument '##' is a character. Perhaps a
-backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\DeclareExpandableDocumentCommand' must
-(cmd)              be a command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\DeclareExpandableDocumentCommand' should be the
-document command that will be defined. The provided argument '##' is a
-character. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\NewExpandableDocumentCommand' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\NewExpandableDocumentCommand' should be the document
-command that will be defined. The provided argument '##' is a character.
-Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\RenewExpandableDocumentCommand' must be
-(cmd)              a command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\RenewExpandableDocumentCommand' should be the document
-command that will be defined. The provided argument '##' is a character.
-Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\ProvideExpandableDocumentCommand' must
-(cmd)              be a command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\ProvideExpandableDocumentCommand' should be the
-document command that will be defined. The provided argument '##' is a
-character. Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\GetDocumentCommandArgSpec' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\GetDocumentCommandArgSpec' should be the document
-command that will be defined. The provided argument '##' is a character.
-Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: First argument of '\ShowDocumentCommandArgSpec' must be a
-(cmd)              command.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-The first argument of '\ShowDocumentCommandArgSpec' should be the document
-command that will be defined. The provided argument '##' is a character.
-Perhaps a backslash is missing?
-LaTeX will ignore this entire definition.
-! LaTeX cmd Error: Command '\?' already defined.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-You have used \NewDocumentCommand with a command that already has a
-definition.
-The existing definition of '\?' will not be altered.
-! LaTeX cmd Error: Command '\?' already defined.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-You have used \NewExpandableDocumentCommand with a command that already has a
-definition.
-The existing definition of '\?' will not be altered.
-> \ArgumentSpecification=m.
-<recently read> }
-l. ...  }
-============================================================
-============================================================
-TEST 11: SplitList
+TEST 9: SplitList
 ============================================================
 > {a(b}.
 ============================================================
 ============================================================
-TEST 12: Defaults referring to other arguments
+TEST 10: Defaults referring to other arguments
 ============================================================
 (walk,walked,walked)
 (find,found,found)
@@ -531,7 +231,7 @@ TEST 12: Defaults referring to other arguments
 {\A }{\B }|{{\A }{\B }}{\D }|\E 
 ============================================================
 ============================================================
-TEST 13: Test ## in expandable argument specification
+TEST 11: Test ## in expandable argument specification
 ============================================================
 ! Use of \??? doesn't match its definition.
 <argument> \???  
@@ -547,7 +247,7 @@ followed by the required stuff, so I'm ignoring it.
 1|\BooleanTrue |##|2##
 ============================================================
 ============================================================
-TEST 14: Refer to other args (expandable)
+TEST 12: Refer to other args (expandable)
 ============================================================
 ! Use of \??? doesn't match its definition.
 <argument> \???  
@@ -573,7 +273,7 @@ followed by the required stuff, so I'm ignoring it.
 \A 
 ============================================================
 ============================================================
-TEST 15: Bad arguments
+TEST 13: Bad arguments
 ============================================================
 ! LaTeX cmd Error: Invalid argument type 'abc' in command '\foo'.
 For immediate help type H <return>.
@@ -625,7 +325,7 @@ LaTeX will ignore this entire definition.
 undefined
 ============================================================
 ============================================================
-TEST 16: Optional+mandatory with same delimiter
+TEST 14: Optional+mandatory with same delimiter
 ============================================================
 LaTeX cmd Warning: Optional and mandatory argument with same delimiter '['.
 (cmd)              
@@ -703,7 +403,7 @@ LaTeX cmd Warning: Optional and mandatory argument with same delimiter '_'.
 |{-NoValue-}{-NoValue-}|\BooleanTrue |a|
 ============================================================
 ============================================================
-TEST 17: par in short expandable
+TEST 15: par in short expandable
 ============================================================
 Runaway argument?
 \ERROR 
@@ -728,13 +428,13 @@ My plan is to forget the whole thing and hope for the best.
 \par 
 ============================================================
 ============================================================
-TEST 18: Environments and expansion
+TEST 16: Environments and expansion
 ============================================================
 \A \B \C 
 \A \B \C 
 ============================================================
 ============================================================
-TEST 19: Expandable r type
+TEST 17: Expandable r type
 ============================================================
 LaTeX cmd Warning: Optional and mandatory argument with same delimiter '['.
 (cmd)              
@@ -748,7 +448,7 @@ LaTeX cmd Warning: Optional and mandatory argument with same delimiter '['.
 |a|b|
 ============================================================
 ============================================================
-TEST 20: Expandable e-type argument definitions
+TEST 18: Expandable e-type argument definitions
 ============================================================
 ({-NoValue-}{-NoValue-})(\the re)
 ({\u p}{-NoValue-})(\he re)
@@ -769,7 +469,7 @@ TEST 20: Expandable e-type argument definitions
 ({\B }{\A })(\C )(\D )
 ============================================================
 ============================================================
-TEST 21: Long status of t-type ignored
+TEST 19: Long status of t-type ignored
 ============================================================
 |\BooleanTrue |\BooleanTrue |\par |\par |
 |\BooleanFalse |\BooleanTrue |-NoValue-|\par \A |
@@ -785,31 +485,31 @@ My plan is to forget the whole thing and hope for the best.
 |\BooleanFalse |\BooleanTrue |[\A ]|\B |
 ============================================================
 ============================================================
-TEST 22: Same expandable command with/without defaults
+TEST 20: Same expandable command with/without defaults
 ============================================================
 |a|b|{c}
 |b|c|
 ============================================================
 ============================================================
-TEST 23: Wrongly undefining an xparse command
+TEST 21: Wrongly undefining an xparse command
 ============================================================
 LaTeX cmd Warning: The command '\foo' was undefined but not the associated
 (cmd)              commands '\foo code' and/or '\foo defaults'. Maybe you
 (cmd)              tried using \let. This may lead to an infinite loop.
 ============================================================
 ============================================================
-TEST 24: NoValue passed to another command
+TEST 22: NoValue passed to another command
 ============================================================
 |-NoValue-|B|C|
 ============================================================
 ============================================================
-TEST 25: Two processors
+TEST 23: Two processors
 ============================================================
 Defining \CountArg on line ...
 |2|{5}|
 ============================================================
 ============================================================
-TEST 26: Non-character token delimiters
+TEST 24: Non-character token delimiters
 ============================================================
 abc
 def
@@ -827,7 +527,7 @@ abc/-NoValue-
 -NoValue-/something
 ============================================================
 ============================================================
-TEST 27: Non-character delimiters: delimiters with the same definition
+TEST 25: Non-character delimiters: delimiters with the same definition
 ============================================================
 (abc)
 (-NoValue-)
@@ -847,7 +547,7 @@ Removed: (\){r})
 (l|r)
 ============================================================
 ============================================================
-TEST 28: Non-character delimiters: delimiters \let to the same token
+TEST 26: Non-character delimiters: delimiters \let to the same token
 ============================================================
 (abc)
 (-NoValue-)
@@ -867,7 +567,7 @@ Removed: (\){r})
 (l|r)
 ============================================================
 ============================================================
-TEST 29: Non-character delimiters: forbidden delimiters
+TEST 27: Non-character delimiters: forbidden delimiters
 ============================================================
 ! LaTeX cmd Error: Argument delimiter '\(' invalid in command '\foo'.
 For immediate help type H <return>.
@@ -924,7 +624,7 @@ LaTeX will ignore this entire definition.
 (abc)
 ============================================================
 ============================================================
-TEST 30: delimited commands in alignments
+TEST 28: delimited commands in alignments
 ============================================================
 A x y&z
 B x yXz
@@ -933,7 +633,7 @@ D x yXz
 E x y&z
 ============================================================
 ============================================================
-TEST 31: IfBoolean multi token
+TEST 29: IfBoolean multi token
 ============================================================
 ! Use of \??? doesn't match its definition.
 <argument> \???  
@@ -963,13 +663,13 @@ followed by the required stuff, so I'm ignoring it.
 FALSE
 ============================================================
 ============================================================
-TEST 32: Processor spaces
+TEST 30: Processor spaces
 ============================================================
 |{a}{bcd}|
 > \box_wd:N \l_tmpa_box =0.0pt.
 ============================================================
 ============================================================
-TEST 33: Processor depending on other argument
+TEST 31: Processor depending on other argument
 ============================================================
 |{a}{bcd;e}|1|
 |{a,bcd}{e}|1|
diff --git a/base/testfiles-ltcmd/ltcmd005.luatex.tlg b/base/testfiles-ltcmd/ltcmd005.luatex.tlg
index b456979b..0ffc38f2 100644
--- a/base/testfiles-ltcmd/ltcmd005.luatex.tlg
+++ b/base/testfiles-ltcmd/ltcmd005.luatex.tlg
@@ -94,17 +94,7 @@ My plan is to forget the whole thing and hope for the best.
 |a|\BooleanTrue |\BooleanTrue | \c_space_token |
 ============================================================
 ============================================================
-TEST 3: Signature normalized or not
-============================================================
-> \ArgumentSpecification=!+o.
-<recently read> }
-l. ...  }
-> \ArgumentSpecification=+!o.
-<recently read> }
-l. ...  }
-============================================================
-============================================================
-TEST 4: Environment body valid
+TEST 3: Environment body valid
 ============================================================
 ============================================================
 |...|{\begin {any} \begin {unbalanced} \end {environments} \begin {provided}}{\end {nesting} \end {works} \begin {out} \end {!}}|
@@ -112,7 +102,7 @@ TEST 4: Environment body valid
 |-NoValue-| [...] \begin {any} \begin {unbalanced} \end {environments} \begin {provided} \end {nesting} \end {works} \begin {out} \end {!} |
 |-NoValue-|
 ============================================================
-TEST 5: Body invalid
+TEST 4: Body invalid
 ============================================================
 |-NoValue-|{}|
 ! LaTeX Error: \begin{env1} on input line ... ended by \end{env2}.
@@ -148,7 +138,7 @@ specification. This is not allowed.
 LaTeX will ignore this entire definition.
 ============================================================
 ============================================================
-TEST 6: Invalid signatures
+TEST 5: Invalid signatures
 ============================================================
 ! LaTeX cmd Error: Bad argument specification 'O' for command '\testA'.
 For immediate help type H <return>.
@@ -226,7 +216,7 @@ The letter 'X' does not specify a known argument type.
 LaTeX will ignore this entire definition.
 ============================================================
 ============================================================
-TEST 7: Already or not yet defined
+TEST 6: Already or not yet defined
 ============================================================
 ! LaTeX cmd Error: Command '\space' already defined.
 For immediate help type H <return>.
@@ -259,7 +249,7 @@ defined.
 LaTeX will ignore this entire definition.
 ============================================================
 ============================================================
-TEST 8: Not definable/multi-char
+TEST 7: Not definable/multi-char
 ============================================================
 ! LaTeX cmd Error: First argument of '\NewDocumentCommand' must be a command.
 For immediate help type H <return>.
@@ -312,7 +302,7 @@ followed by the required stuff, so I'm ignoring it.
 FALSE
 ============================================================
 ============================================================
-TEST 9: Invalid signatures for expandable commands
+TEST 8: Invalid signatures for expandable commands
 ============================================================
 ! LaTeX cmd Error: Bad argument specification 'mo' for \testA.
 For immediate help type H <return>.
@@ -343,37 +333,7 @@ expandable ones.
 LaTeX will ignore this entire definition.
 ============================================================
 ============================================================
-TEST 10: Arg spec
-============================================================
-! LaTeX cmd Error: Command '\space' not defined using xparse.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-You have asked for the argument specification for the command '\space', but
-this was not defined using xparse.
-macro:->
-! LaTeX cmd Error: Unknown document command '\undefined'.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-You have asked for the argument specification for the command '\undefined',
-but it is not defined.
-! LaTeX cmd Error: Environment 'verbatim' not defined using xparse.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-You have asked for the argument specification for the environment 'verbatim',
-but this was not defined using xparse.
-macro:->
-! LaTeX cmd Error: Unknown document environment 'undefined'.
-For immediate help type H <return>.
- ...                                              
-l. ...  }
-You have asked for the argument specification for the environment 'undefined',
-but it is not defined.
-============================================================
-============================================================
-TEST 11: Run-time errors
+TEST 9: Run-time errors
 ============================================================
 ! LaTeX cmd Error: Circular dependency in defaults of command '\testA'.
 For immediate help type H <return>.





More information about the latex3-commits mailing list.