1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00

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) {
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());
}