summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/typ/utility/color.typ11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/typ/utility/color.typ b/tests/typ/utility/color.typ
index 1e16c0a6..31d3dae8 100644
--- a/tests/typ/utility/color.typ
+++ b/tests/typ/utility/color.typ
@@ -8,8 +8,15 @@
// Alpha channel.
#test(rgb(1.0, 0.0, 0.0, 0.5), rgb("ff000080"))
-// Clamped.
-#test(rgb(-30, 15.5, 0.5), rgb("00ff80"))
+---
+// Error for values that are out of range.
+// Error: 11-14 value must be between 0.0 and 1.0
+#test(rgb(-30, 15.5, 0.5))
+
+---
+// Error for values that are out of range.
+// Error: 26-30 value must be between 0.0 and 1.0
+#test(rgb(0.1, 0.2, 0.3, -0.1))
---
// Error: 6-11 invalid color