SFML/test/Graphics/Glyph.cpp
Chris Thrasher fd3526f742 Use <> for test utilities includes
SFML convention is to only use "" includes when the header is in
the same directory as the file including it. Because these test
util headers are in a separate directory, it makes more sense to
include them via <>.
2022-06-27 00:22:16 +02:00

18 lines
409 B
C++

#include <SFML/Graphics/Glyph.hpp>
#include <GraphicsUtil.hpp>
#include <doctest.h>
TEST_CASE("sf::Glyph class - [graphics]")
{
SUBCASE("Construction")
{
const sf::Glyph glyph;
CHECK(glyph.advance == 0);
CHECK(glyph.lsbDelta == 0);
CHECK(glyph.rsbDelta == 0);
CHECK(glyph.bounds == sf::FloatRect());
CHECK(glyph.textureRect == sf::IntRect());
}
}