Test constexpr construction of aggregates

This commit is contained in:
Chris Thrasher 2024-07-16 13:39:03 -06:00
parent 8c895fd7e1
commit b50f62da43

View File

@ -17,11 +17,11 @@ TEST_CASE("[Graphics] sf::Glyph")
SECTION("Construction") SECTION("Construction")
{ {
const sf::Glyph glyph; constexpr sf::Glyph glyph;
CHECK(glyph.advance == 0.f); STATIC_CHECK(glyph.advance == 0.f);
CHECK(glyph.lsbDelta == 0); STATIC_CHECK(glyph.lsbDelta == 0);
CHECK(glyph.rsbDelta == 0); STATIC_CHECK(glyph.rsbDelta == 0);
CHECK(glyph.bounds == sf::FloatRect()); STATIC_CHECK(glyph.bounds == sf::FloatRect());
CHECK(glyph.textureRect == sf::IntRect()); STATIC_CHECK(glyph.textureRect == sf::IntRect());
} }
} }