Added test for hex string conversions

This commit is contained in:
Bob Polis 2022-09-30 13:41:51 +02:00
parent 5ee6c17faa
commit 74c67103d1

View File

@ -89,3 +89,8 @@ BOOST_AUTO_TEST_CASE(hsb2rgb_magenta_test) {
BOOST_TEST(rgb.g == 0.0); BOOST_TEST(rgb.g == 0.0);
BOOST_TEST(rgb.b == 1.0); BOOST_TEST(rgb.b == 1.0);
} }
BOOST_AUTO_TEST_CASE(hextest) {
Color col {"#123456"};
BOOST_TEST(col.hex() == "#123456");
}