[latex3-commits] [git/LaTeX3-latex3-latex3] cs-delimited-args: Tests for expandable commands (02b1feb01)
PhelypeOleinik
tex.phelype at gmail.com
Wed Feb 26 00:09:21 CET 2020
Repository : https://github.com/latex3/latex3
On branch : cs-delimited-args
Link : https://github.com/latex3/latex3/commit/02b1feb01923197ce4fd0f4fe0bf9a39866b4900
>---------------------------------------------------------------
commit 02b1feb01923197ce4fd0f4fe0bf9a39866b4900
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date: Tue Feb 25 20:09:21 2020 -0300
Tests for expandable commands
The expandable code did already have this feature (it checks if a delimited argument is there by using `\str_if_eq:nn`), so I just added a test for clarity.
>---------------------------------------------------------------
02b1feb01923197ce4fd0f4fe0bf9a39866b4900
l3packages/xparse/testfiles/xparse004.luatex.tlg | 3 +++
l3packages/xparse/testfiles/xparse004.lvt | 3 +++
l3packages/xparse/testfiles/xparse004.tlg | 3 +++
3 files changed, 9 insertions(+)
diff --git a/l3packages/xparse/testfiles/xparse004.luatex.tlg b/l3packages/xparse/testfiles/xparse004.luatex.tlg
index 1ae205985..d95450619 100644
--- a/l3packages/xparse/testfiles/xparse004.luatex.tlg
+++ b/l3packages/xparse/testfiles/xparse004.luatex.tlg
@@ -864,6 +864,9 @@ TEST 29: More non-character token delimiters
(abc)
(-NoValue-)
Removed: (\)abc\))
+(abc)
+(-NoValue-)
+Removed: (abc\){})
============================================================
============================================================
TEST 30: IfBoolean multi token
diff --git a/l3packages/xparse/testfiles/xparse004.lvt b/l3packages/xparse/testfiles/xparse004.lvt
index f351647a5..13158296f 100644
--- a/l3packages/xparse/testfiles/xparse004.lvt
+++ b/l3packages/xparse/testfiles/xparse004.lvt
@@ -476,6 +476,9 @@
\DeclareDocumentCommand { \foo } { d\(\) } { \TYPE { (#1) } \clean }
\foo\(abc\)\z
\foo\)abc\)\z
+ \DeclareExpandableDocumentCommand { \foo } { d\(\) m } { \TYPE { (#1) } \clean }
+ \foo\(abc\){}\z
+ \foo\)abc\){}\z
}
\TEST { IfBoolean~multi~token }
diff --git a/l3packages/xparse/testfiles/xparse004.tlg b/l3packages/xparse/testfiles/xparse004.tlg
index b6731f00c..cd27f600e 100644
--- a/l3packages/xparse/testfiles/xparse004.tlg
+++ b/l3packages/xparse/testfiles/xparse004.tlg
@@ -864,6 +864,9 @@ TEST 29: More non-character token delimiters
(abc)
(-NoValue-)
Removed: (\)abc\))
+(abc)
+(-NoValue-)
+Removed: (abc\){})
============================================================
============================================================
TEST 30: IfBoolean multi token
More information about the latex3-commits
mailing list.