File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ catch_discover_tests(test-csfml-window)
4747add_executable (test -csfml-graphics
4848 Graphics/BlendMode.test .cpp
4949 Graphics/Color.test .cpp
50+ Graphics/CoordinateType.test .cpp
5051 Graphics/Rect.test .cpp
5152)
5253target_link_libraries (test -csfml-graphics PRIVATE csfml-graphics Catch2::Catch2WithMain SFML::Graphics)
Original file line number Diff line number Diff line change 1+ #include < CSFML/Graphics/CoordinateType.h>
2+
3+ #include < SFML/Graphics/CoordinateType.hpp>
4+
5+ #include < catch2/catch_test_macros.hpp>
6+
7+ TEST_CASE (" [Graphics] sfCoordinateType" )
8+ {
9+ STATIC_CHECK (sfCoordinateTypeNormalized == static_cast <int >(sf::CoordinateType::Normalized));
10+ STATIC_CHECK (sfCoordinateTypePixels == static_cast <int >(sf::CoordinateType::Pixels));
11+ }
You can’t perform that action at this time.
0 commit comments