[latex3-commits] [latex3/latex2e] gh1189: Extend github-1009 tests (7ce66e73)
github at latex-project.org
github at latex-project.org
Thu Nov 30 09:16:57 CET 2023
Repository : https://github.com/latex3/latex2e
On branch : gh1189
Link : https://github.com/latex3/latex2e/commit/7ce66e732be00ab3c4d750b8ee63a0017f6400f9
>---------------------------------------------------------------
commit 7ce66e732be00ab3c4d750b8ee63a0017f6400f9
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Nov 30 08:13:02 2023 +0000
Extend github-1009 tests
>---------------------------------------------------------------
7ce66e732be00ab3c4d750b8ee63a0017f6400f9
base/testfiles-ltcmd/github-1009.lvt | 25 +++++++++++++++
base/testfiles-ltcmd/github-1009.tlg | 60 ++++++++++++++++++++++++++++++++++++
2 files changed, 85 insertions(+)
diff --git a/base/testfiles-ltcmd/github-1009.lvt b/base/testfiles-ltcmd/github-1009.lvt
index 21170d01..92846fea 100644
--- a/base/testfiles-ltcmd/github-1009.lvt
+++ b/base/testfiles-ltcmd/github-1009.lvt
@@ -13,11 +13,26 @@
\DeclareCommandCopy{\baz}{\foo}
\ShowCommand{\baz}
+ \DeclareDocumentCommand{\foo}{ m m }{}
+ \ShowCommand{\foo}
+ \DeclareCommandCopy{\baz}{\foo}
+ \ShowCommand{\baz}
+
\DeclareDocumentCommand{\foo}{ +m }{}
\ShowCommand{\foo}
\DeclareCommandCopy{\baz}{\foo}
\ShowCommand{\baz}
+ \DeclareDocumentCommand{\foo}{ +m +m }{}
+ \ShowCommand{\foo}
+ \DeclareCommandCopy{\baz}{\foo}
+ \ShowCommand{\baz}
+
+ \DeclareDocumentCommand{\foo}{ m +m }{}
+ \ShowCommand{\foo}
+ \DeclareCommandCopy{\baz}{\foo}
+ \ShowCommand{\baz}
+
\DeclareDocumentCommand{\foo}{ >{\foo}m }{}
\ShowCommand{\foo}
\DeclareCommandCopy{\baz}{\foo}
@@ -35,10 +50,20 @@
\DeclareCommandCopy{\baz}{\foo}
\ShowCommand{\baz}
+ \DeclareExpandableDocumentCommand{\foo}{ m m }{}
+ \ShowCommand{\foo}
+ \DeclareCommandCopy{\baz}{\foo}
+ \ShowCommand{\baz}
+
\DeclareExpandableDocumentCommand{\foo}{ +m }{}
\ShowCommand{\foo}
\DeclareCommandCopy{\baz}{\foo}
\ShowCommand{\baz}
+
+ \DeclareExpandableDocumentCommand{\foo}{ +m +m }{}
+ \ShowCommand{\foo}
+ \DeclareCommandCopy{\baz}{\foo}
+ \ShowCommand{\baz}
}
\END
diff --git a/base/testfiles-ltcmd/github-1009.tlg b/base/testfiles-ltcmd/github-1009.tlg
index 2e650734..dba7a1e4 100644
--- a/base/testfiles-ltcmd/github-1009.tlg
+++ b/base/testfiles-ltcmd/github-1009.tlg
@@ -21,6 +21,18 @@ l. ...}
->.
<recently read> }
l. ...}
+> \foo=document command:
+ #1:m
+ #2:m
+->.
+<recently read> }
+l. ...}
+> \baz=document command:
+ #1:m
+ #2:m
+->.
+<recently read> }
+l. ...}
> \foo=document command:
#1:+m
->.
@@ -31,6 +43,30 @@ l. ...}
->.
<recently read> }
l. ...}
+> \foo=document command:
+ #1:+m
+ #2:+m
+->.
+<recently read> }
+l. ...}
+> \baz=document command:
+ #1:+m
+ #2:+m
+->.
+<recently read> }
+l. ...}
+> \foo=document command:
+ #1:m
+ #2:+m
+->.
+<recently read> }
+l. ...}
+> \baz=document command:
+ #1:m
+ #2:+m
+->.
+<recently read> }
+l. ...}
> \foo=document command:
#1:>{\foo }m
->.
@@ -63,13 +99,37 @@ l. ...}
->.
<recently read> }
l. ...}
+> \foo=expandable document command:
+ #1:m
+ #2:m
+->.
+<recently read> }
+l. ...}
+> \baz=expandable document command:
+ #1:m
+ #2:m
+->.
+<recently read> }
+l. ...}
+> \foo=expandable document command:
+ #1:+m
+->.
+<recently read> }
+l. ...}
+> \baz=expandable document command:
+ #1:+m
+->.
+<recently read> }
+l. ...}
> \foo=expandable document command:
#1:+m
+ #2:+m
->.
<recently read> }
l. ...}
> \baz=expandable document command:
#1:+m
+ #2:+m
->.
<recently read> }
l. ...}
More information about the latex3-commits
mailing list.