summaryrefslogtreecommitdiff
path: root/tests/typ/compiler/methods.typ
diff options
context:
space:
mode:
authorfrozolotl <44589151+frozolotl@users.noreply.github.com>2024-02-20 14:01:11 +0100
committerGitHub <noreply@github.com>2024-02-20 13:01:11 +0000
commitd8aba7c4ff10f8f5c3bab0adb46405cc221637bd (patch)
tree84b684510887b028b2d1d01e9e57782a3f479c2f /tests/typ/compiler/methods.typ
parent6402bdacc7534ec9d893a84a2c4fd9c753d4a649 (diff)
Add alpha component to luma (#3438)
Diffstat (limited to 'tests/typ/compiler/methods.typ')
-rw-r--r--tests/typ/compiler/methods.typ3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/typ/compiler/methods.typ b/tests/typ/compiler/methods.typ
index a3d8c658..9eed5aed 100644
--- a/tests/typ/compiler/methods.typ
+++ b/tests/typ/compiler/methods.typ
@@ -128,7 +128,8 @@
---
// Test color '.components()' without conversions
#test-repr(rgb(1, 2, 3, 4).components(), (0.39%, 0.78%, 1.18%, 1.57%))
-#test-repr(luma(40).components(), (15.69%, ))
+#test-repr(luma(40).components(), (15.69%, 100%))
+#test-repr(luma(40, 50%).components(), (15.69%, 50%))
#test-repr(cmyk(4%, 5%, 6%, 7%).components(), (4%, 5%, 6%, 7%))
#test-repr(oklab(10%, 0.2, 0.3).components(), (10%, 0.2, 0.3, 100%))
#test-repr(oklch(10%, 0.2, 90deg).components(), (10%, 0.2, 90deg, 100%))