mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-27 21:36:13 +01:00
Add tests for sfPrimitiveType
This commit is contained in:
1 parent
112abc1ab7
commit
96d41a2459
2 files changed
+16
No files matched your search
@@ -48,6 +48,7 @@ add_executable(test-csfml-graphics
|
|||||||
Graphics/BlendMode.test.cpp
|
Graphics/BlendMode.test.cpp
|
||||||
Graphics/Color.test.cpp
|
Graphics/Color.test.cpp
|
||||||
Graphics/CoordinateType.test.cpp
|
Graphics/CoordinateType.test.cpp
|
||||||
|
Graphics/PrimitiveType.test.cpp
|
||||||
Graphics/Rect.test.cpp
|
Graphics/Rect.test.cpp
|
||||||
Graphics/RenderStates.test.cpp
|
Graphics/RenderStates.test.cpp
|
||||||
Graphics/StencilMode.test.cpp
|
Graphics/StencilMode.test.cpp
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
#include <CSFML/Graphics/PrimitiveType.h>
|
||||||
|
|
||||||
|
#include <SFML/Graphics/PrimitiveType.hpp>
|
||||||
|
|
||||||
|
#include <catch2/catch_test_macros.hpp>
|
||||||
|
|
||||||
|
TEST_CASE("[Graphics] sfPrimitiveType")
|
||||||
|
{
|
||||||
|
STATIC_CHECK(sfPoints == static_cast<int>(sf::PrimitiveType::Points));
|
||||||
|
STATIC_CHECK(sfLines == static_cast<int>(sf::PrimitiveType::Lines));
|
||||||
|
STATIC_CHECK(sfLineStrip == static_cast<int>(sf::PrimitiveType::LineStrip));
|
||||||
|
STATIC_CHECK(sfTriangles == static_cast<int>(sf::PrimitiveType::Triangles));
|
||||||
|
STATIC_CHECK(sfTriangleStrip == static_cast<int>(sf::PrimitiveType::TriangleStrip));
|
||||||
|
STATIC_CHECK(sfTriangleFan == static_cast<int>(sf::PrimitiveType::TriangleFan));
|
||||||
|
}
|
||||||
Reference in new issue
Block a user