SFML/test/Graphics/Glyph.cpp

19 lines
412 B
C++
Raw Normal View History

2022-05-21 22:43:10 -06:00
#include <SFML/Graphics/Glyph.hpp>
2022-07-17 16:18:40 -06:00
#include <doctest/doctest.h>
2022-05-21 22:43:10 -06:00
2022-07-04 11:20:58 -05:00
#include <GraphicsUtil.hpp>
TEST_CASE("[Graphics] sf::Glyph")
2022-05-21 22:43:10 -06:00
{
SUBCASE("Construction")
{
const sf::Glyph glyph;
2022-07-17 16:18:40 -06:00
CHECK(glyph.advance == 0.f);
2022-05-21 22:43:10 -06:00
CHECK(glyph.lsbDelta == 0);
CHECK(glyph.rsbDelta == 0);
CHECK(glyph.bounds == sf::FloatRect());
CHECK(glyph.textureRect == sf::IntRect());
}
}