[latex3-commits] [git/LaTeX3-latex3-latex3] main: Test for 0/100 in color expressions (6df051ec8)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Mar 7 13:47:53 CET 2023


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/6df051ec82976022d21a45bbfcc98c2ce1f7f1f9

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

commit 6df051ec82976022d21a45bbfcc98c2ce1f7f1f9
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Mar 7 12:47:53 2023 +0000

    Test for 0/100 in color expressions


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

6df051ec82976022d21a45bbfcc98c2ce1f7f1f9
 l3kernel/testfiles/m3color001.lvt |  8 ++++++++
 l3kernel/testfiles/m3color001.tlg | 16 +++++++++++++++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/l3kernel/testfiles/m3color001.lvt b/l3kernel/testfiles/m3color001.lvt
index 96969e863..5b60636cc 100644
--- a/l3kernel/testfiles/m3color001.lvt
+++ b/l3kernel/testfiles/m3color001.lvt
@@ -153,6 +153,14 @@
      \color_select:n { . }
   }
 
+\TEST { Color~expression~special~cases }
+  {
+    \color_set:nn { foo1 } { red!0!cyan }
+    \color_show:n { foo1 }
+    \color_set:nn { foo2 } { cyan!100!red }
+    \color_show:n { foo2 }
+  }
+
 \TEST { Color~expression~errors }
   {
     \color_set:nn { foo1 } { red!-50!cyan }
diff --git a/l3kernel/testfiles/m3color001.tlg b/l3kernel/testfiles/m3color001.tlg
index 2acbbffa6..3d7cc6066 100644
--- a/l3kernel/testfiles/m3color001.tlg
+++ b/l3kernel/testfiles/m3color001.tlg
@@ -289,7 +289,21 @@ The color . has the properties:
 l. ...  }
 ============================================================
 ============================================================
-TEST 12: Color expression errors
+TEST 12: Color expression special cases
+============================================================
+The color foo1 has the properties:
+>  model  =>  cmyk
+>  cmyk  =>  1.0 0.0 0.0 0.0.
+<recently read> }
+l. ...  }
+The color foo2 has the properties:
+>  model  =>  cmyk
+>  cmyk  =>  1.0 0.0 0.0 0.0.
+<recently read> }
+l. ...  }
+============================================================
+============================================================
+TEST 13: Color expression errors
 ============================================================
 ! LaTeX Error: Input value -50 out of range [0, 100].
 For immediate help type H <return>.





More information about the latex3-commits mailing list.