Browse Source

MeshIndexType and MeshPrimitive is 32-bit, verify it's printed as such.

pull/556/head
Vladimír Vondruš 4 years ago
parent
commit
c9cce7f307
  1. 6
      src/Magnum/Test/MeshTest.cpp

6
src/Magnum/Test/MeshTest.cpp

@ -284,8 +284,8 @@ void MeshTest::indexTypeSizeImplementationSpecific() {
void MeshTest::debugPrimitive() {
std::ostringstream o;
Debug(&o) << MeshPrimitive::TriangleFan << MeshPrimitive(0xfe);
CORRADE_COMPARE(o.str(), "MeshPrimitive::TriangleFan MeshPrimitive(0xfe)\n");
Debug(&o) << MeshPrimitive::TriangleFan << MeshPrimitive(0x70fe);
CORRADE_COMPARE(o.str(), "MeshPrimitive::TriangleFan MeshPrimitive(0x70fe)\n");
}
void MeshTest::debugPrimitiveImplementationSpecific() {
@ -297,7 +297,7 @@ void MeshTest::debugPrimitiveImplementationSpecific() {
void MeshTest::debugIndexType() {
std::ostringstream o;
Debug(&o) << MeshIndexType::UnsignedShort << MeshIndexType(0xfe);
Debug(&o) << MeshIndexType::UnsignedShort << MeshIndexType(0x70fe);
CORRADE_COMPARE(o.str(), "MeshIndexType::UnsignedShort MeshIndexType(0xfe)\n");
}

Loading…
Cancel
Save