[latex3-commits] [l3svn] branch master updated: Round out \color_select:n(n) tests
noreply at latex-project.org
noreply at latex-project.org
Thu Oct 12 14:50:02 CEST 2017
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
The following commit(s) were added to refs/heads/master by this push:
new 2aa69b2 Round out \color_select:n(n) tests
2aa69b2 is described below
commit 2aa69b2d5a6cf37fda078bd145935230c795c8be
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Oct 12 13:49:33 2017 +0100
Round out \color_select:n(n) tests
---
.../l3color-extra/testfiles/m3color-extra001.lvt | 30 +++++++++++--
.../l3color-extra/testfiles/m3color-extra001.tlg | 44 ++++++++++++++++++++
2 files changed, 70 insertions(+), 4 deletions(-)
diff --git a/l3trial/l3color-extra/testfiles/m3color-extra001.lvt b/l3trial/l3color-extra/testfiles/m3color-extra001.lvt
index 2174900..08f6435 100644
--- a/l3trial/l3color-extra/testfiles/m3color-extra001.lvt
+++ b/l3trial/l3color-extra/testfiles/m3color-extra001.lvt
@@ -68,12 +68,34 @@
\color_show:n { foo2 }
}
+\OMIT
+ \cs_set_protected:Npn \test:n #1
+ {
+ \__test:Nn \color_select:n { {#1} }
+ }
+ \cs_set_protected:Npn \test:nn #1#2
+ {
+ \__test:Nn \color_select:nn { {#1} {#2} }
+ }
+ \cs_set_protected:Npn \__test:Nn #1#2
+ {
+ \hbox_set:Nn \l_tmpa_box
+ {
+ \group_begin:
+ #1 #2
+ Hello
+ \group_end:
+ }
+ \box_show:N \l_tmpa_box
+ }
+\TIMO
+
\TEST { Selecting~colors }
{
- \color_select:n { black }
- \color_select:n { red!25!green }
- \color_select:nn { gray } { 0.33 }
- \color_select:nn { cmyk } { 0.9 , 0.2 , 0.4 , 0 }
+ \test:n { black }
+ \test:n { red!25!green }
+ \test:nn { gray } { 0.33 }
+ \test:nn { cmyk } { 0.9 , 0.2 , 0.4 , 0 }
}
\TEST { Showing~colors }
diff --git a/l3trial/l3color-extra/testfiles/m3color-extra001.tlg b/l3trial/l3color-extra/testfiles/m3color-extra001.tlg
index a33b75e..b96d6ea 100644
--- a/l3trial/l3color-extra/testfiles/m3color-extra001.tlg
+++ b/l3trial/l3color-extra/testfiles/m3color-extra001.tlg
@@ -109,6 +109,50 @@ l. ... }
============================================================
TEST 6: Selecting colors
============================================================
+> \box57=
+\hbox(6.94444+0.0)x22.50005
+.\pdfcolorstack 0 push {0 g 0 G}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+> \box57=
+\hbox(6.94444+0.0)x22.50005
+.\pdfcolorstack 0 push {0.25 0.75 0 rg 0.25 0.75 0 RG}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+> \box57=
+\hbox(6.94444+0.0)x22.50005
+.\pdfcolorstack 0 push {0.33 g 0.33 G}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+> \box57=
+\hbox(6.94444+0.0)x22.50005
+.\pdfcolorstack 0 push {0.9 0.2 0.4 0 k 0.9 0.2 0.4 0 K}
+.\OT1/cmr/m/n/10 H
+.\OT1/cmr/m/n/10 e
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 l
+.\OT1/cmr/m/n/10 o
+! OK.
+<argument> \l_tmpa_box
+l. ... }
============================================================
============================================================
TEST 7: Showing colors
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list