mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
25fa30afc6
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.
19 lines
412 B
C++
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());
|
|
}
|
|
}
|