From d8aba7c4ff10f8f5c3bab0adb46405cc221637bd Mon Sep 17 00:00:00 2001 From: frozolotl <44589151+frozolotl@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:01:11 +0100 Subject: Add alpha component to luma (#3438) --- tests/typ/compiler/methods.typ | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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%)) -- cgit v1.2.3