#include #include #include #include TEST_CASE("[Graphics] sf::Glyph") { SECTION("Type traits") { STATIC_CHECK(std::is_copy_constructible_v); STATIC_CHECK(std::is_copy_assignable_v); STATIC_CHECK(std::is_nothrow_move_constructible_v); STATIC_CHECK(std::is_nothrow_move_assignable_v); } 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()); } }