Browse Source

No need to explicitly specify default template parameter.

pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
658839446c
  1. 4
      src/Test/MeshTest.cpp

4
src/Test/MeshTest.cpp

@ -63,7 +63,7 @@ void MeshTest::configurationPrimitive() {
Utility::Configuration c;
c.setValue("primitive", Mesh::Primitive::LineStrip);
CORRADE_COMPARE(c.value<std::string>("primitive"), "LineStrip");
CORRADE_COMPARE(c.value("primitive"), "LineStrip");
CORRADE_COMPARE(c.value<Mesh::Primitive>("primitive"), Mesh::Primitive::LineStrip);
}
@ -71,7 +71,7 @@ void MeshTest::configurationIndexType() {
Utility::Configuration c;
c.setValue("type", Mesh::IndexType::UnsignedByte);
CORRADE_COMPARE(c.value<std::string>("type"), "UnsignedByte");
CORRADE_COMPARE(c.value("type"), "UnsignedByte");
CORRADE_COMPARE(c.value<Mesh::IndexType>("type"), Mesh::IndexType::UnsignedByte);
}

Loading…
Cancel
Save