From 616b3fe3e7243b43d766e03d4e79cffb5a461652 Mon Sep 17 00:00:00 2001 From: patrick96 Date: Thu, 23 Mar 2023 23:15:21 +0100 Subject: [PATCH] color: fix tests --- tests/unit_tests/utils/color.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit_tests/utils/color.cpp b/tests/unit_tests/utils/color.cpp index 4f693cbc..f0d3d770 100644 --- a/tests/unit_tests/utils/color.cpp +++ b/tests/unit_tests/utils/color.cpp @@ -89,14 +89,14 @@ TEST(Rgba, hasColor) { } TEST(Rgba, isTransparent) { - rgba v(0x1243); + rgba v{"#123456"}; EXPECT_FALSE(v.is_transparent()); - v = rgba(0xff1243); + v = rgba{"#ff123456"}; EXPECT_FALSE(v.is_transparent()); - v = rgba(0xfe1243); + v = rgba{"#fe123456"}; EXPECT_TRUE(v.is_transparent()); }