SFML/test/Graphics/Glyph.cpp
Chris Thrasher 25fa30afc6 Make test case names more readable
Test output now shows the module name left-aligned so you can easily
browse to see what modules have what tests and know what module a
failing test is coming from.
2022-10-01 23:19:52 +02:00

19 lines
412 B
C++

#include <SFML/Graphics/Glyph.hpp>
#include <doctest/doctest.h>
#include <GraphicsUtil.hpp>
TEST_CASE("[Graphics] sf::Glyph")
{
SUBCASE("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());
}
}