From 460a24f4ab90d5113b504e59772e10b83a37713d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 5 Mar 2024 20:07:40 +0100 Subject: [PATCH] Math: verify behavior of Color[34]ub printing with Debug::hex. --- src/Magnum/Math/Test/ColorTest.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Magnum/Math/Test/ColorTest.cpp b/src/Magnum/Math/Test/ColorTest.cpp index 382572ef0..4ae0dbcb0 100644 --- a/src/Magnum/Math/Test/ColorTest.cpp +++ b/src/Magnum/Math/Test/ColorTest.cpp @@ -1199,6 +1199,11 @@ void ColorTest::debugUb() { o.str({}); Debug(&o) << 0x12345678_rgba << 0x90abcdef_rgba; CORRADE_COMPARE(o.str(), "#12345678 #90abcdef\n"); + + /* The Hex flag shouldn't affect this at all */ + o.str({}); + Debug{&o, Debug::Flag::Hex} << 0x789abc_rgb << 0x12345678_rgba; + CORRADE_COMPARE(o.str(), "#789abc #12345678\n"); } void ColorTest::debugUbColor() {