[latex3-commits] [git/LaTeX3-latex3-latex3] main: added tests (3953ab165)
Joseph Wright
joseph.wright at morningstar2.co.uk
Mon Jan 10 14:45:55 CET 2022
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/3953ab1656b2caa10ce3abcf8149d6c4108583c1
>---------------------------------------------------------------
commit 3953ab1656b2caa10ce3abcf8149d6c4108583c1
Author: Jonathan Spratte <jspratte at yahoo.de>
Date: Sun Nov 15 21:45:38 2020 +0100
added tests
>---------------------------------------------------------------
3953ab1656b2caa10ce3abcf8149d6c4108583c1
l3kernel/testfiles/m3prop006.lvt | 50 ++++++++++++++
l3kernel/testfiles/m3prop006.tlg | 137 +++++++++++++++++++++++++++++++++++++++
2 files changed, 187 insertions(+)
diff --git a/l3kernel/testfiles/m3prop006.lvt b/l3kernel/testfiles/m3prop006.lvt
new file mode 100644
index 000000000..871797f40
--- /dev/null
+++ b/l3kernel/testfiles/m3prop006.lvt
@@ -0,0 +1,50 @@
+%
+% Copyright (C) 2020 The LaTeX Project
+%
+
+\documentclass{minimal}
+\input{regression-test}
+
+
+\RequirePackage[enable-debug]{expl3}
+\ExplSyntaxOn
+\debug_on:n { check-declarations , deprecation , log-functions }
+\ExplSyntaxOff
+
+
+\begin{document}
+\START
+\AUTHOR{Jonathan P. Spratte}
+\ExplSyntaxOn
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\OMIT
+\prop_new:N \l_test_prop
+\prop_set_from_keyval:Nn \l_test_prop
+ { a = b, b = {{abc}}, c = {#1}, d = {a,b,c}, e = {a=b}, f = \tex_cr:D, &=& }
+\cs_generate_variant:Nn \tl_analysis_show:n { x }
+\cs_generate_variant:Nn \tl_analysis_show:n { o }
+\box_new:N \l_test_box
+\TIMO
+
+\TEST { prop~to~keyval~expansion }
+ {
+ \tl_analysis_show:x { \prop_to_keyval:N \l_test_prop }
+ \exp_args:No \tl_analysis_show:o { \prop_to_keyval:N \l_test_prop }
+ }
+
+\TEST { prop~to~keyval~in~halign }
+ {
+ \vbox_set:Nn \l_test_box
+ {
+ \tex_halign:D { \TYPE{0} # \TYPE{1} & \ERROR # \tex_cr:D
+ \exp_after:wN \exp_after:wN \exp_after:wN
+ \use_none_delimit_by_q_stop:w
+ \prop_to_keyval:N \l_tmpa_prop
+ \q_stop
+ \tex_cr:D }
+ }
+ }
+
+\END
diff --git a/l3kernel/testfiles/m3prop006.tlg b/l3kernel/testfiles/m3prop006.tlg
new file mode 100644
index 000000000..f02c7e841
--- /dev/null
+++ b/l3kernel/testfiles/m3prop006.tlg
@@ -0,0 +1,137 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+Author: Jonathan P. Spratte
+============================================================
+TEST 1: prop to keyval expansion
+============================================================
+The token list contains the tokens:
+> a (the character a)
+> = (the character =)
+> (blank space )
+> { (begin-group character {)
+> b (the letter b)
+> } (end-group character })
+> , (the character ,)
+> b (the character b)
+> = (the character =)
+> (blank space )
+> { (begin-group character {)
+> { (begin-group character {)
+> a (the letter a)
+> b (the letter b)
+> c (the letter c)
+> } (end-group character })
+> } (end-group character })
+> , (the character ,)
+> c (the character c)
+> = (the character =)
+> (blank space )
+> { (begin-group character {)
+> # (macro parameter character #)
+> 1 (the character 1)
+> } (end-group character })
+> , (the character ,)
+> d (the character d)
+> = (the character =)
+> (blank space )
+> { (begin-group character {)
+> a (the letter a)
+> , (the character ,)
+> b (the letter b)
+> , (the character ,)
+> c (the letter c)
+> } (end-group character })
+> , (the character ,)
+> e (the character e)
+> = (the character =)
+> (blank space )
+> { (begin-group character {)
+> a (the letter a)
+> = (the character =)
+> b (the letter b)
+> } (end-group character })
+> , (the character ,)
+> f (the character f)
+> = (the character =)
+> (blank space )
+> { (begin-group character {)
+> \tex_cr:D (control sequence=\cr)
+> } (end-group character })
+> , (the character ,)
+> & (the character &)
+> = (the character =)
+> (blank space )
+> { (begin-group character {)
+> & (alignment tab character &)
+> } (end-group character }).
+<recently read> }
+l. ... }
+The token list contains the tokens:
+> a (the character a)
+> = (the character =)
+> (blank space )
+> { (begin-group character {)
+> b (the letter b)
+> } (end-group character })
+> , (the character ,)
+> b (the character b)
+> = (the character =)
+> (blank space )
+> { (begin-group character {)
+> { (begin-group character {)
+> a (the letter a)
+> b (the letter b)
+> c (the letter c)
+> } (end-group character })
+> } (end-group character })
+> , (the character ,)
+> c (the character c)
+> = (the character =)
+> (blank space )
+> { (begin-group character {)
+> # (macro parameter character #)
+> 1 (the character 1)
+> } (end-group character })
+> , (the character ,)
+> d (the character d)
+> = (the character =)
+> (blank space )
+> { (begin-group character {)
+> a (the letter a)
+> , (the character ,)
+> b (the letter b)
+> , (the character ,)
+> c (the letter c)
+> } (end-group character })
+> , (the character ,)
+> e (the character e)
+> = (the character =)
+> (blank space )
+> { (begin-group character {)
+> a (the letter a)
+> = (the character =)
+> b (the letter b)
+> } (end-group character })
+> , (the character ,)
+> f (the character f)
+> = (the character =)
+> (blank space )
+> { (begin-group character {)
+> \tex_cr:D (control sequence=\cr)
+> } (end-group character })
+> , (the character ,)
+> & (the character &)
+> = (the character =)
+> (blank space )
+> { (begin-group character {)
+> & (alignment tab character &)
+> } (end-group character }).
+<recently read> }
+l. ... }
+============================================================
+============================================================
+TEST 2: prop to keyval in halign
+============================================================
+0
+1
+============================================================
More information about the latex3-commits
mailing list.