[latex3-commits] [git/LaTeX3-latex3-latex3] latex2e/gh569: Add test file for \__cmd_copy:NN with deprecated types (51a6aa6d7)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Aug 9 05:20:35 CEST 2021


Repository : https://github.com/latex3/latex3
On branch  : latex2e/gh569
Link       : https://github.com/latex3/latex3/commit/51a6aa6d7f74e349db6ad2a922171d2275d1dd6d

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

commit 51a6aa6d7f74e349db6ad2a922171d2275d1dd6d
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Aug 9 00:20:35 2021 -0300

    Add test file for \__cmd_copy:NN with deprecated types
    
    Slightly incorrect until the core functionality is in the kernel


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

51a6aa6d7f74e349db6ad2a922171d2275d1dd6d
 l3packages/xparse/testfiles/xparse007.tlg |  1 +
 l3packages/xparse/testfiles/xparse008.lvt | 52 ++++++++++++++++++++
 l3packages/xparse/testfiles/xparse008.tlg | 79 +++++++++++++++++++++++++++++++
 3 files changed, 132 insertions(+)

diff --git a/l3packages/xparse/testfiles/xparse007.tlg b/l3packages/xparse/testfiles/xparse007.tlg
index a511a92b1..228b1201a 100644
--- a/l3packages/xparse/testfiles/xparse007.tlg
+++ b/l3packages/xparse/testfiles/xparse007.tlg
@@ -18,6 +18,7 @@ Defining \__cmd_add_type_l:w on line ...
 Defining \__cmd_add_type_u:w on line ...
 Defining \__cmd_add_expandable_type_l:w on line ...
 Defining \__cmd_add_expandable_type_u:w on line ...
+Defining \__cmd_copy_grabber_u:w on line ...
 Defining \__cmd_grab_G:w on line ...
 Defining \__cmd_grab_G_long:w on line ...
 Defining \__cmd_grab_G_obey_spaces:w on line ...
diff --git a/l3packages/xparse/testfiles/xparse008.lvt b/l3packages/xparse/testfiles/xparse008.lvt
new file mode 100644
index 000000000..fe5ae9dae
--- /dev/null
+++ b/l3packages/xparse/testfiles/xparse008.lvt
@@ -0,0 +1,52 @@
+%
+% Copyright (C) 2021 LaTeX3 Project
+%
+
+\input{regression-test}
+\RequirePackage[enable-debug]{expl3}
+\ExplSyntaxOn
+\debug_on:n { check-declarations , deprecation , log-functions }
+\ExplSyntaxOff
+\RequirePackage{xparse}
+
+\START
+
+\AUTHOR{Phelype Oleinik}
+
+\ExplSyntaxOn
+\exp_args:Nx \use_ii_i:nn
+  { { \exp_not:o { \@declarecommandcopylisthook } } }
+  { \regex_match:nnT { \c{__cmd_copy:NN} } }
+  {
+    \typeout { Delete~these~lines~then~update~this~test~file!!! }
+    \END
+  }
+\ExplSyntaxOff
+
+\DeclareDocumentCommand\foo{m+oD(){bar}+vm>{\SplitList{;}}G{b;a;z}lmu^}
+  { \typeout{##1:#1^^J##2:#2^^J##3:#3^^J##4:#4^^J##5:#5^^J##6:#6^^J##7:#7^^J##8:#8^^J##9:#9^^J} }
+
+\typeout{\string\foo=\meaning\foo}
+\foo{a}[b](c)|f|{g}{h;i;j}hello{world}more^
+\foo{a}|f|{g}hello{world}more^
+
+\DeclareCommandCopy\bar\foo
+
+\typeout{\string\bar=\meaning\bar}
+\bar{a}[b](c)|f|{g}{h;i;j}hello{world}more^
+\bar{a}|f|{g}hello{world}more^
+
+\DeclareExpandableDocumentCommand\foo{moR(){bar}mO{b;a;z}+m+l+m+u^}
+  { \typeout{##1:#1^^J##2:#2^^J##3:#3^^J##4:#4^^J##5:#5^^J##6:#6^^J##7:#7^^J##8:#8^^J##9:#9^^J} }
+
+\typeout{\string\foo=\meaning\foo}
+\foo{a}[b](c){g}[h;i;j]{k}hello{world}more^
+\foo{a}(boo){g}{k}hello{world}more^
+
+\DeclareCommandCopy\bar\foo
+
+\typeout{\string\bar=\meaning\bar}
+\bar{a}[b](c){g}[h;i;j]{k}hello{world}more^
+\bar{a}(boo){g}{k}hello{world}more^
+
+\END
diff --git a/l3packages/xparse/testfiles/xparse008.tlg b/l3packages/xparse/testfiles/xparse008.tlg
new file mode 100644
index 000000000..8f7ebf15f
--- /dev/null
+++ b/l3packages/xparse/testfiles/xparse008.tlg
@@ -0,0 +1,79 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+Author: Phelype Oleinik
+\foo=\protected macro:->\__cmd_start:nNNnnn {m+oD(){bar}+vm>{\SplitList {;}}G{b;a;z}lmu^}\foo  \foo code {\__cmd_grab_m_1:w \__cmd_grab_D_long:w []\__cmd_grab_D:w ()\__cmd_grab_v_long:w \__cmd_grab_m_1:w \__cmd_grab_G:w \__cmd_grab_l:w \__cmd_grab_m_1:w \__cmd_grab_u:w {^}}{\c_novalue_tl \c_novalue_tl {\prg_do_nothing: bar}\c_novalue_tl \c_novalue_tl {\prg_do_nothing: b;a;z}\c_novalue_tl \c_novalue_tl \c_novalue_tl }{{}{}{}{}{}{{\SplitList {;}}}{}{}{}}
+##1:a
+##2:b
+##3:c
+##4:f
+##5:g
+##6:{h}{i}{j}
+##7:hello
+##8:world
+##9:more
+##1:a
+##2:-NoValue-
+##3:bar
+##4:f
+##5:g
+##6:{b}{a}{z}
+##7:hello
+##8:world
+##9:more
+\bar=\protected macro:->\__cmd_start:nNNnnn {m+oD(){bar}+vm>{\SplitList {;}}G{b;a;z}lmu^}\foo  \foo code {\__cmd_grab_m_1:w \__cmd_grab_D_long:w []\__cmd_grab_D:w ()\__cmd_grab_v_long:w \__cmd_grab_m_1:w \__cmd_grab_G:w \__cmd_grab_l:w \__cmd_grab_m_1:w \__cmd_grab_u:w {^}}{\c_novalue_tl \c_novalue_tl {\prg_do_nothing: bar}\c_novalue_tl \c_novalue_tl {\prg_do_nothing: b;a;z}\c_novalue_tl \c_novalue_tl \c_novalue_tl }{{}{}{}{}{}{{\SplitList {;}}}{}{}{}}
+##1:a
+##2:b
+##3:c
+##4:f
+##5:g
+##6:{h}{i}{j}
+##7:hello
+##8:world
+##9:more
+##1:a
+##2:-NoValue-
+##3:bar
+##4:f
+##5:g
+##6:{b}{a}{z}
+##7:hello
+##8:world
+##9:more
+\foo=macro:->\__cmd_start_expandable:nNNNNn {moR(){bar}mO{b;a;z}+m+l+m+u^}\foo  \foo   \foo code \foo defaults {\__cmd_expandable_grab_m:w \__cmd_expandable_grab_D:w \foo (arg 2) []\__cmd_expandable_grab_R:w \foo (arg 3) ()\__cmd_expandable_grab_m:w \__cmd_expandable_grab_D:w \foo (arg 5) []\__cmd_expandable_grab_m_long:w \__cmd_expandable_grab_u:w \foo (arg 7) \__cmd_expandable_grab_m_long:w \__cmd_expandable_grab_u:w \foo (arg 9) }
+##1:a
+##2:b
+##3:c
+##4:g
+##5:h;i;j
+##6:k
+##7:hello
+##8:world
+##9:more
+##1:a
+##2:-NoValue-
+##3:boo
+##4:g
+##5:b;a;z
+##6:k
+##7:hello
+##8:world
+##9:more
+\bar=macro:->\__cmd_start_expandable:nNNNNn {moR(){bar}mO{b;a;z}+m+l+m+u^}\foo  \foo   \foo code \foo defaults {\__cmd_expandable_grab_m:w \__cmd_expandable_grab_D:w \foo (arg 2) []\__cmd_expandable_grab_R:w \foo (arg 3) ()\__cmd_expandable_grab_m:w \__cmd_expandable_grab_D:w \foo (arg 5) []\__cmd_expandable_grab_m_long:w \__cmd_expandable_grab_u:w \foo (arg 7) \__cmd_expandable_grab_m_long:w \__cmd_expandable_grab_u:w \foo (arg 9) }
+##1:a
+##2:b
+##3:c
+##4:g
+##5:h;i;j
+##6:k
+##7:hello
+##8:world
+##9:more
+##1:a
+##2:-NoValue-
+##3:boo
+##4:g
+##5:b;a;z
+##6:k
+##7:hello
+##8:world
+##9:more





More information about the latex3-commits mailing list.