mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-24 21:53:37 +02:00
Add unit tests
Yay tests!
This commit is contained in:
1 parent
36c234fd90
commit
330b423ee9
10 files changed
+166
-7
No files matched your search
@@ -0,0 +1,27 @@
|
||||
#include <SFML/System/Vector2.h>
|
||||
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
||||
TEST_CASE("[System] sfVector2")
|
||||
{
|
||||
SECTION("sfVector2i")
|
||||
{
|
||||
const sfVector2i vector{};
|
||||
CHECK(vector.x == 0);
|
||||
CHECK(vector.y == 0);
|
||||
}
|
||||
|
||||
SECTION("sfVector2u")
|
||||
{
|
||||
const sfVector2u vector{};
|
||||
CHECK(vector.x == 0);
|
||||
CHECK(vector.y == 0);
|
||||
}
|
||||
|
||||
SECTION("sfVector2f")
|
||||
{
|
||||
const sfVector2f vector{};
|
||||
CHECK(vector.x == 0);
|
||||
CHECK(vector.y == 0);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user