From 74c67103d18d20b8c10f5cc388a5139e43bb8eb2 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Fri, 30 Sep 2022 13:41:51 +0200 Subject: [PATCH] Added test for hex string conversions --- tests/src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/src/main.cpp b/tests/src/main.cpp index 3ad669c..01546ea 100644 --- a/tests/src/main.cpp +++ b/tests/src/main.cpp @@ -89,3 +89,8 @@ BOOST_AUTO_TEST_CASE(hsb2rgb_magenta_test) { BOOST_TEST(rgb.g == 0.0); BOOST_TEST(rgb.b == 1.0); } + +BOOST_AUTO_TEST_CASE(hextest) { + Color col {"#123456"}; + BOOST_TEST(col.hex() == "#123456"); +}