[latex3-commits] [git/LaTeX3-latex3-latex3] peek-regex: Add test (21c7e722e)
Bruno Le Floch
blflatex at gmail.com
Mon Jul 20 02:19:19 CEST 2020
Repository : https://github.com/latex3/latex3
On branch : peek-regex
Link : https://github.com/latex3/latex3/commit/21c7e722eae2016698c7f0f5bc9184459267392e
>---------------------------------------------------------------
commit 21c7e722eae2016698c7f0f5bc9184459267392e
Author: Bruno Le Floch <bruno at le-floch.fr>
Date: Mon Jul 13 00:59:14 2020 +0200
Add test
>---------------------------------------------------------------
21c7e722eae2016698c7f0f5bc9184459267392e
l3kernel/testfiles/m3regex011.lvt | 11 ++++++++++-
l3kernel/testfiles/m3regex011.tlg | 9 ++++++++-
2 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/l3kernel/testfiles/m3regex011.lvt b/l3kernel/testfiles/m3regex011.lvt
index 68ca3879e..9d5d9cae9 100644
--- a/l3kernel/testfiles/m3regex011.lvt
+++ b/l3kernel/testfiles/m3regex011.lvt
@@ -16,10 +16,19 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\TEST { Clobbering~of~threads~with~non-optimizable~\c }
+\TEST { No~clobbering~of~threads~with~non-optimizable~\c }
{
\regex_match:nnTF { .a|\c{fo.}b } { \foo a } { \TRUE } { \ERROR }
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\TEST { No~groups~within~\c }
+ {
+ \tl_set:Nn \l_tmpa_tl { \aa \bb }
+ \regex_replace_all:nnN { \c{(.*)}(.) } { \0,\1,\2,\3 } \l_tmpa_tl
+ \tl_show:N \l_tmpa_tl
+ }
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\END
diff --git a/l3kernel/testfiles/m3regex011.tlg b/l3kernel/testfiles/m3regex011.tlg
index 82a2b7946..05eb3b2f2 100644
--- a/l3kernel/testfiles/m3regex011.tlg
+++ b/l3kernel/testfiles/m3regex011.tlg
@@ -2,7 +2,14 @@ This is a generated file for the LaTeX (2e + expl3) validation system.
Don't change this file in any respect.
Author: Bruno Le Floch
============================================================
-TEST 1: Clobbering of threads with non-optimizable \c
+TEST 1: No clobbering of threads with non-optimizable \c
============================================================
TRUE
============================================================
+============================================================
+TEST 2: No groups within \c
+============================================================
+> \l_tmpa_tl=\aa \bb ,\bb ,,.
+<recently read> }
+l. ... }
+============================================================
More information about the latex3-commits
mailing list.