[latex3-commits] [git/LaTeX3-latex3-latex3] gh839: Add tests for c472d9c (ab3c25ac1)

PhelypeOleinik phelype.oleinik at latex-project.org
Wed Jan 13 02:28:47 CET 2021


Repository : https://github.com/latex3/latex3
On branch  : gh839
Link       : https://github.com/latex3/latex3/commit/ab3c25ac1c43ce2abea4c3609751d648546ae8b9

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

commit ab3c25ac1c43ce2abea4c3609751d648546ae8b9
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Tue Jan 12 22:28:47 2021 -0300

    Add tests for c472d9c


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

ab3c25ac1c43ce2abea4c3609751d648546ae8b9
 l3packages/xparse/testfiles/xparse004.lvt | 16 ++++++++++++++++
 l3packages/xparse/testfiles/xparse004.tlg | 15 ++++++++++++---
 2 files changed, 28 insertions(+), 3 deletions(-)

diff --git a/l3packages/xparse/testfiles/xparse004.lvt b/l3packages/xparse/testfiles/xparse004.lvt
index b1a603046..02bac0458 100644
--- a/l3packages/xparse/testfiles/xparse004.lvt
+++ b/l3packages/xparse/testfiles/xparse004.lvt
@@ -538,6 +538,22 @@
     \foo? abc\){}\z
   }
 
+\TEST { delimited~commands~in~alignments }
+  {
+    \NewDocumentCommand\MyCmd                 {D[]{A} } {\message{#1}}
+    \NewDocumentCommand\MyCmdTab              {D&&{B} } {\message{#1}}
+    \NewExpandableDocumentCommand\MyExpCmd    {D[]{C}m} {\message{#1}}
+    \NewExpandableDocumentCommand\MyExpCmdTab {D&&{D}m} {\message{#1}}
+    \NewDocumentEnvironment{MyEnv} {b} {\message{E~x~#1}} { }
+    %
+    \TYPE{}\halign{#\cr \MyCmd         \MyCmd      [x]   \MyCmd      [y&z]   \cr}
+    \TYPE{}\halign{#\cr \MyCmdTab      \MyCmdTab   &x&   \MyCmdTab   &yXz&   \cr}
+    \TYPE{}\halign{#\cr \MyExpCmd{}    \MyExpCmd   [x]{} \MyExpCmd   [y&z]{} \cr}
+    \TYPE{}\halign{#\cr \MyExpCmdTab{} \MyExpCmdTab&x&{} \MyExpCmdTab&yXz&{} \cr}
+    \TYPE{}\halign{#\cr \begin{MyEnv} y&z \end{MyEnv} \cr}
+    \TYPE{}
+  }
+
 \TEST { IfBoolean~multi~token }
   {
     \IfBooleanT { } { \ERROR }
diff --git a/l3packages/xparse/testfiles/xparse004.tlg b/l3packages/xparse/testfiles/xparse004.tlg
index 1ef8db0aa..03100ee6a 100644
--- a/l3packages/xparse/testfiles/xparse004.tlg
+++ b/l3packages/xparse/testfiles/xparse004.tlg
@@ -956,7 +956,16 @@ LaTeX will ignore this entire definition.
 (abc)
 ============================================================
 ============================================================
-TEST 32: IfBoolean multi token
+TEST 32: delimited commands in alignments
+============================================================
+A x y&z
+B x yXz
+C x y&z
+D x yXz
+E x y&z
+============================================================
+============================================================
+TEST 33: IfBoolean multi token
 ============================================================
 ! Undefined control sequence.
 <argument> \LaTeX3 error: 
@@ -989,13 +998,13 @@ and I'll forget about whatever was undefined.
 FALSE
 ============================================================
 ============================================================
-TEST 33: Processor spaces
+TEST 34: Processor spaces
 ============================================================
 |{a}{bcd}|
 > \box_wd:N \l_tmpa_box =0.0pt.
 ============================================================
 ============================================================
-TEST 34: Processor depending on other argument
+TEST 35: Processor depending on other argument
 ============================================================
 |{a}{bcd;e}|1|
 |{a,bcd}{e}|1|





More information about the latex3-commits mailing list.