[latex3-commits] [git/LaTeX3-latex3-latex3] cs-delimited-args: Add tests for cs-delimited arguments (6e4efb651)

PhelypeOleinik tex.phelype at gmail.com
Tue Feb 25 23:40:52 CET 2020


Repository : https://github.com/latex3/latex3
On branch  : cs-delimited-args
Link       : https://github.com/latex3/latex3/commit/6e4efb6515907b179cf62503ff20951de46ce165

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

commit 6e4efb6515907b179cf62503ff20951de46ce165
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Tue Feb 25 19:40:52 2020 -0300

    Add tests for cs-delimited arguments


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

6e4efb6515907b179cf62503ff20951de46ce165
 l3packages/xparse/testfiles/xparse004.luatex.tlg | 13 ++++++++++---
 l3packages/xparse/testfiles/xparse004.lvt        | 11 +++++++++++
 l3packages/xparse/testfiles/xparse004.tlg        | 13 ++++++++++---
 3 files changed, 31 insertions(+), 6 deletions(-)

diff --git a/l3packages/xparse/testfiles/xparse004.luatex.tlg b/l3packages/xparse/testfiles/xparse004.luatex.tlg
index 19b0133f0..1ae205985 100644
--- a/l3packages/xparse/testfiles/xparse004.luatex.tlg
+++ b/l3packages/xparse/testfiles/xparse004.luatex.tlg
@@ -859,7 +859,14 @@ abc/-NoValue-
 -NoValue-/something
 ============================================================
 ============================================================
-TEST 29: IfBoolean multi token
+TEST 29: More non-character token delimiters
+============================================================
+(abc)
+(-NoValue-)
+Removed: (\)abc\))
+============================================================
+============================================================
+TEST 30: IfBoolean multi token
 ============================================================
 ! Undefined control sequence.
 <argument> \LaTeX3 error: 
@@ -892,13 +899,13 @@ and I'll forget about whatever was undefined.
 FALSE
 ============================================================
 ============================================================
-TEST 30: Processor spaces
+TEST 31: Processor spaces
 ============================================================
 |{a}{bcd}|
 > \box_wd:N \l_tmpa_box =0.0pt.
 ============================================================
 ============================================================
-TEST 31: Processor depending on other argument
+TEST 32: Processor depending on other argument
 ============================================================
 |{a}{bcd;e}|1|
 |{a,bcd}{e}|1|
diff --git a/l3packages/xparse/testfiles/xparse004.lvt b/l3packages/xparse/testfiles/xparse004.lvt
index 68f9bb033..f351647a5 100644
--- a/l3packages/xparse/testfiles/xparse004.lvt
+++ b/l3packages/xparse/testfiles/xparse004.lvt
@@ -467,6 +467,17 @@
     \foo \undefinedSecondArgument {something}
   }
 
+\TEST { More~non-character~token~delimiters }
+  {
+    \cs_set:Npn \( {abc}
+    \cs_set:Npn \) {abc}
+    \cs_set:Npn \clean #1 \z
+      { \tl_if_empty:nF {#1} { \TYPE { Removed:~( \exp_not:n {#1} ) } } }
+    \DeclareDocumentCommand { \foo } { d\(\) } { \TYPE { (#1) } \clean }
+    \foo\(abc\)\z
+    \foo\)abc\)\z
+  }
+
 \TEST { IfBoolean~multi~token }
   {
     \IfBooleanT { } { \ERROR }
diff --git a/l3packages/xparse/testfiles/xparse004.tlg b/l3packages/xparse/testfiles/xparse004.tlg
index 1359fc492..b6731f00c 100644
--- a/l3packages/xparse/testfiles/xparse004.tlg
+++ b/l3packages/xparse/testfiles/xparse004.tlg
@@ -859,7 +859,14 @@ abc/-NoValue-
 -NoValue-/something
 ============================================================
 ============================================================
-TEST 29: IfBoolean multi token
+TEST 29: More non-character token delimiters
+============================================================
+(abc)
+(-NoValue-)
+Removed: (\)abc\))
+============================================================
+============================================================
+TEST 30: IfBoolean multi token
 ============================================================
 ! Undefined control sequence.
 <argument> \LaTeX3 error: 
@@ -892,13 +899,13 @@ and I'll forget about whatever was undefined.
 FALSE
 ============================================================
 ============================================================
-TEST 30: Processor spaces
+TEST 31: Processor spaces
 ============================================================
 |{a}{bcd}|
 > \box_wd:N \l_tmpa_box =0.0pt.
 ============================================================
 ============================================================
-TEST 31: Processor depending on other argument
+TEST 32: Processor depending on other argument
 ============================================================
 |{a}{bcd;e}|1|
 |{a,bcd}{e}|1|





More information about the latex3-commits mailing list.