color: fix tests

This commit is contained in:
patrick96 2023-03-23 23:15:21 +01:00
parent 47f6d9c25d
commit 616b3fe3e7
No known key found for this signature in database
GPG Key ID: 521E5E03AEBCA1A7

View File

@ -89,14 +89,14 @@ TEST(Rgba, hasColor) {
} }
TEST(Rgba, isTransparent) { TEST(Rgba, isTransparent) {
rgba v(0x1243); rgba v{"#123456"};
EXPECT_FALSE(v.is_transparent()); EXPECT_FALSE(v.is_transparent());
v = rgba(0xff1243); v = rgba{"#ff123456"};
EXPECT_FALSE(v.is_transparent()); EXPECT_FALSE(v.is_transparent());
v = rgba(0xfe1243); v = rgba{"#fe123456"};
EXPECT_TRUE(v.is_transparent()); EXPECT_TRUE(v.is_transparent());
} }