Browse Source

Math: verify behavior of Color[34]ub printing with Debug::hex.

pull/638/head
Vladimír Vondruš 2 years ago
parent
commit
460a24f4ab
  1. 5
      src/Magnum/Math/Test/ColorTest.cpp

5
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() {

Loading…
Cancel
Save