[latex3-commits] [l3svn] 01/02: Further colour expression tests
noreply at latex-project.org
noreply at latex-project.org
Wed Oct 11 23:22:03 CEST 2017
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
commit 599984014f83a89a639488eb2d03be0cdf366d3b
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Oct 11 22:11:30 2017 +0100
Further colour expression tests
---
.../l3color-extra/testfiles/m3color-extra001.lvt | 16 ++++++++
.../l3color-extra/testfiles/m3color-extra001.tlg | 40 +++++++++++++++++++-
2 files changed, 54 insertions(+), 2 deletions(-)
diff --git a/l3trial/l3color-extra/testfiles/m3color-extra001.lvt b/l3trial/l3color-extra/testfiles/m3color-extra001.lvt
index 56b724d..33aa43e 100644
--- a/l3trial/l3color-extra/testfiles/m3color-extra001.lvt
+++ b/l3trial/l3color-extra/testfiles/m3color-extra001.lvt
@@ -25,12 +25,28 @@
\color_show:n { foo3 }
}
+\TEST { Renaming~colors~by~model }
+ {
+ \color_set:nnn { foo1 } { gray } { 0.1 }
+ \color_show:n { foo1 }
+ \color_set:nnn { foo1 } { rgb } { 0.1 , 0.2 , 0.3 }
+ \color_show:n { foo1 }
+ \color_set:nnn { foo1 } { cmyk } { 0.1 , 0.2 , 0.3 , 0.4 }
+ \color_show:n { foo1 }
+ }
+
\TEST { Naming~colors~by~expression }
{
\color_set:nn { foo1 } { black }
\color_show:n { foo1 }
\color_set:nn { foo2 } { black!50!white }
\color_show:n { foo2 }
+ \color_set:nn { foo3 } { red!50 }
+ \color_show:n { foo3 }
+ \color_set:nn { foo4 } { red!50!green!25!blue }
+ \color_show:n { foo4 }
+ \color_set:nn { foo5 } { cyan!10!magenta!20!yellow }
+ \color_show:n { foo5 }
}
\TEST { Showing~colors }
diff --git a/l3trial/l3color-extra/testfiles/m3color-extra001.tlg b/l3trial/l3color-extra/testfiles/m3color-extra001.tlg
index f55d56c..d242d2d 100644
--- a/l3trial/l3color-extra/testfiles/m3color-extra001.tlg
+++ b/l3trial/l3color-extra/testfiles/m3color-extra001.tlg
@@ -24,7 +24,26 @@ The color foo3 has the properties:
l. ... }
============================================================
============================================================
-TEST 2: Naming colors by expression
+TEST 2: Renaming colors by model
+============================================================
+The color foo1 has the properties:
+> model => gray
+> value => 0.1.
+<recently read> }
+l. ... }
+The color foo1 has the properties:
+> model => rgb
+> value => 0.1, 0.2, 0.3.
+<recently read> }
+l. ... }
+The color foo1 has the properties:
+> model => cmyk
+> value => 0.1, 0.2, 0.3, 0.4.
+<recently read> }
+l. ... }
+============================================================
+============================================================
+TEST 3: Naming colors by expression
============================================================
The color foo1 has the properties:
> model => gray
@@ -36,9 +55,26 @@ The color foo2 has the properties:
> value => 0.5.
<recently read> }
l. ... }
+The color foo3 has the properties:
+> model => rgb
+> value => 1, 0.5, 0.5.
+<recently read> }
+l. ... }
+Defining \l__color_named_foo4_tl on line ...
+The color foo4 has the properties:
+> model => rgb
+> value => 0.125, 0.125, 0.75.
+<recently read> }
+l. ... }
+Defining \l__color_named_foo5_tl on line ...
+The color foo5 has the properties:
+> model => cmyk
+> value => 0.02, 0.18, 0.8, 0.
+<recently read> }
+l. ... }
============================================================
============================================================
-TEST 3: Showing colors
+TEST 4: Showing colors
============================================================
The color unknown is undefined.
> .
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list