Browse Source

Math: test a bit more.

pull/286/merge
Vladimír Vondruš 8 years ago
parent
commit
597223e993
  1. 2
      src/Magnum/Math/Test/BoolVectorTest.cpp

2
src/Magnum/Math/Test/BoolVectorTest.cpp

@ -246,6 +246,8 @@ void BoolVectorTest::convertBool() {
/* The ! operation should *just work* using the bool conversion operator */ /* The ! operation should *just work* using the bool conversion operator */
CORRADE_VERIFY(BoolVector19(0xff, 0xff, 0x07)); CORRADE_VERIFY(BoolVector19(0xff, 0xff, 0x07));
CORRADE_VERIFY(!BoolVector19(0xff, 0xff, 0x04)); CORRADE_VERIFY(!BoolVector19(0xff, 0xff, 0x04));
CORRADE_VERIFY(!BoolVector19(0x00, 0x00, 0x00));
CORRADE_VERIFY(!!BoolVector19(0xff, 0xff, 0xff));
/* Implicit conversion is not allowed */ /* Implicit conversion is not allowed */
CORRADE_VERIFY(!(std::is_convertible<BoolVector19, bool>::value)); CORRADE_VERIFY(!(std::is_convertible<BoolVector19, bool>::value));

Loading…
Cancel
Save