[latex3-commits] [l3svn] 04/04: First real l3color-extra tests

noreply at latex-project.org noreply at latex-project.org
Wed Oct 11 18:38:54 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 2b82bbb3917d9f6b953d210a1436aaad5036b53e
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Oct 11 17:35:47 2017 +0100

    First real l3color-extra tests
---
 .../l3color-extra/testfiles/m3color-extra001.lvt   |   15 +++++++-
 .../l3color-extra/testfiles/m3color-extra001.tlg   |   40 ++++++++++++++++++++
 2 files changed, 54 insertions(+), 1 deletion(-)

diff --git a/l3trial/l3color-extra/testfiles/m3color-extra001.lvt b/l3trial/l3color-extra/testfiles/m3color-extra001.lvt
index 171d94f..c2a27f2 100644
--- a/l3trial/l3color-extra/testfiles/m3color-extra001.lvt
+++ b/l3trial/l3color-extra/testfiles/m3color-extra001.lvt
@@ -17,7 +17,20 @@
 
 \TEST { Naming~colors~by~model }
   {
-    \color_set:nnn { foo1 } { cmyk } { 0.1 , 0.2 , 0.3 , 0.4 }
+    \color_set:nnn { foo1 } { gray } { 0.1 }
+    \color_show:n { foo1 }
+    \color_set:nnn { foo2 } { rgb } { 0.1 , 0.2 , 0.3 }
+    \color_show:n { foo2 }
+    \color_set:nnn { foo3 } { cmyk } { 0.1 , 0.2 , 0.3 , 0.4 }
+    \color_show:n { foo3 }
+  }
+
+\TEST { Showing~colors }
+  {
+    \color_show:n { unknown }
+    \color_show:n { black }
+    \color_show:n { red }
+    \color_show:n { cyan }
   }
 
 \END
\ No newline at end of file
diff --git a/l3trial/l3color-extra/testfiles/m3color-extra001.tlg b/l3trial/l3color-extra/testfiles/m3color-extra001.tlg
index 7d0842c..36b9438 100644
--- a/l3trial/l3color-extra/testfiles/m3color-extra001.tlg
+++ b/l3trial/l3color-extra/testfiles/m3color-extra001.tlg
@@ -5,4 +5,44 @@ Author: Joseph Wright
 TEST 1: Naming colors by model
 ============================================================
 Defining \l__color_named_foo1_tl on line ...
+The color foo1 has the properties:
+>  model  =>  gray
+>  value  =>  0.1.
+<recently read> }
+l. ...  }
+Defining \l__color_named_foo2_tl on line ...
+The color foo2 has the properties:
+>  model  =>  rgb
+>  value  =>  0.1, 0.2, 0.3.
+<recently read> }
+l. ...  }
+Defining \l__color_named_foo3_tl on line ...
+The color foo3 has the properties:
+>  model  =>  cmyk
+>  value  =>  0.1, 0.2, 0.3, 0.4.
+<recently read> }
+l. ...  }
+============================================================
+============================================================
+TEST 2: Showing colors
+============================================================
+The color unknown is undefined.
+> .
+<recently read> }
+l. ...  }
+The color black has the properties:
+>  model  =>  gray
+>  value  =>  0.
+<recently read> }
+l. ...  }
+The color red has the properties:
+>  model  =>  rgb
+>  value  =>  1, 0, 0.
+<recently read> }
+l. ...  }
+The color cyan has the properties:
+>  model  =>  cmyk
+>  value  =>  1, 0, 0, 0.
+<recently read> }
+l. ...  }
 ============================================================

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list