mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
18 lines
409 B
C++
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());
|
|
}
|
|
}
|