mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-24 21:53:37 +02:00
Add tests for sfCoordinateType
This commit is contained in:
1 parent
bb8a261bb8
commit
ab1a1a2299
2 files changed
+12
No files matched your search
@@ -47,6 +47,7 @@ catch_discover_tests(test-csfml-window)
|
||||
add_executable(test-csfml-graphics
|
||||
Graphics/BlendMode.test.cpp
|
||||
Graphics/Color.test.cpp
|
||||
Graphics/CoordinateType.test.cpp
|
||||
Graphics/Rect.test.cpp
|
||||
)
|
||||
target_link_libraries(test-csfml-graphics PRIVATE csfml-graphics Catch2::Catch2WithMain SFML::Graphics)
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#include <CSFML/Graphics/CoordinateType.h>
|
||||
|
||||
#include <SFML/Graphics/CoordinateType.hpp>
|
||||
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
||||
TEST_CASE("[Graphics] sfCoordinateType")
|
||||
{
|
||||
STATIC_CHECK(sfCoordinateTypeNormalized == static_cast<int>(sf::CoordinateType::Normalized));
|
||||
STATIC_CHECK(sfCoordinateTypePixels == static_cast<int>(sf::CoordinateType::Pixels));
|
||||
}
|
||||
Reference in new issue
Block a user