summaryrefslogtreecommitdiff
path: root/tests/typ/func-rgb.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/func-rgb.typ')
-rw-r--r--tests/typ/func-rgb.typ16
1 files changed, 6 insertions, 10 deletions
diff --git a/tests/typ/func-rgb.typ b/tests/typ/func-rgb.typ
index e88b19bf..d29c2940 100644
--- a/tests/typ/func-rgb.typ
+++ b/tests/typ/func-rgb.typ
@@ -1,11 +1,4 @@
// Test the `rgb` function.
-//
-// warning: 9:6-9:9 must be between 0.0 and 1.0
-// warning: 9:11-9:15 must be between 0.0 and 1.0
-// error: 12:6-12:10 missing argument: blue component
-// error: 15:5-15:5 missing argument: red component
-// error: 15:5-15:5 missing argument: green component
-// error: 15:5-15:5 missing argument: blue component
// Check the output.
[rgb 0.0, 0.3, 0.7]
@@ -13,11 +6,14 @@
// Alpha channel.
[rgb 1.0, 0.0, 0.0, 0.5]
-// Value smaller than 0.0 and larger than 1.0
+// Warning: 2:6-2:9 must be between 0.0 and 1.0
+// Warning: 1:11-1:15 must be between 0.0 and 1.0
[rgb -30, 15.5, 0.5]
-// Missing blue component.
+// Error: 1:6-1:10 missing argument: blue component
[rgb 0, 1]
-// Missing all components.
+// Error: 3:5-3:5 missing argument: red component
+// Error: 2:5-2:5 missing argument: green component
+// Error: 1:5-1:5 missing argument: blue component
[rgb]