mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Test constexpr construction of aggregates
This commit is contained in:
parent
8c895fd7e1
commit
b50f62da43
@ -17,11 +17,11 @@ TEST_CASE("[Graphics] sf::Glyph")
|
||||
|
||||
SECTION("Construction")
|
||||
{
|
||||
const sf::Glyph glyph;
|
||||
CHECK(glyph.advance == 0.f);
|
||||
CHECK(glyph.lsbDelta == 0);
|
||||
CHECK(glyph.rsbDelta == 0);
|
||||
CHECK(glyph.bounds == sf::FloatRect());
|
||||
CHECK(glyph.textureRect == sf::IntRect());
|
||||
constexpr sf::Glyph glyph;
|
||||
STATIC_CHECK(glyph.advance == 0.f);
|
||||
STATIC_CHECK(glyph.lsbDelta == 0);
|
||||
STATIC_CHECK(glyph.rsbDelta == 0);
|
||||
STATIC_CHECK(glyph.bounds == sf::FloatRect());
|
||||
STATIC_CHECK(glyph.textureRect == sf::IntRect());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user