void MeshTest::configurationIndexType() { Utility::Configuration c; c.setValue("type", Mesh::IndexType::UnsignedByte); CORRADE_COMPARE(c.value("type"), "UnsignedByte"); CORRADE_COMPARE(c.value<Mesh::IndexType>("type"), Mesh::IndexType::UnsignedByte); }
void MeshTest::configurationPrimitive() { Utility::Configuration c; c.setValue("primitive", MeshPrimitive::LineStrip); CORRADE_COMPARE(c.value("primitive"), "LineStrip"); CORRADE_COMPARE(c.value<MeshPrimitive>("primitive"), MeshPrimitive::LineStrip); }