|
|
|
@ -214,7 +214,11 @@ void VectorTest::constructOneComponent() { |
|
|
|
|
|
|
|
|
|
|
|
/* Implicit constructor must work */ |
|
|
|
/* Implicit constructor must work */ |
|
|
|
constexpr Vector1 vec = 1.0f; |
|
|
|
constexpr Vector1 vec = 1.0f; |
|
|
|
CORRADE_COMPARE(vec, Vector1(1)); |
|
|
|
CORRADE_COMPARE(vec, Vector1{1.0f}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Conversion back must also work */ |
|
|
|
|
|
|
|
Float value = vec; |
|
|
|
|
|
|
|
CORRADE_COMPARE(value, 1.0f); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void VectorTest::constructConversion() { |
|
|
|
void VectorTest::constructConversion() { |
|
|
|
|