Browse Source

Math: no need to use a <string> in this test.

pull/240/head
Vladimír Vondruš 5 years ago
parent
commit
304819435d
  1. 9
      src/Magnum/Math/Test/TypeTraitsTest.cpp

9
src/Magnum/Math/Test/TypeTraitsTest.cpp

@ -23,9 +23,9 @@
DEALINGS IN THE SOFTWARE. DEALINGS IN THE SOFTWARE.
*/ */
#include <string> #include <Corrade/Containers/ArrayView.h>
#include <Corrade/Containers/StringView.h>
#include <Corrade/TestSuite/Tester.h> #include <Corrade/TestSuite/Tester.h>
#include <Corrade/Utility/DebugStl.h>
#include "Magnum/Math/Half.h" #include "Magnum/Math/Half.h"
#include "Magnum/Math/Math.h" #include "Magnum/Math/Math.h"
@ -161,8 +161,9 @@ TypeTraitsTest::TypeTraitsTest() {
} }
void TypeTraitsTest::name() { void TypeTraitsTest::name() {
CORRADE_COMPARE(TypeTraits<UnsignedShort>::name(), std::string{"UnsignedShort"}); using namespace Corrade::Containers::Literals;
CORRADE_COMPARE(TypeTraits<Float>::name(), std::string{"Float"}); CORRADE_COMPARE(TypeTraits<UnsignedShort>::name(), "UnsignedShort"_s);
CORRADE_COMPARE(TypeTraits<Float>::name(), "Float"_s);
} }
void TypeTraitsTest::isScalar() { void TypeTraitsTest::isScalar() {

Loading…
Cancel
Save