mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 13:06:13 +01:00
Add more tests for the Window module
This commit is contained in:
1 parent
02d6d4937a
commit
d971aada83
6 files changed
+114
-1
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#include <CSFML/Window/Sensor.h>
|
||||
|
||||
#include <SFML/Window/Sensor.hpp>
|
||||
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
||||
TEST_CASE("[Window] sfSensor")
|
||||
{
|
||||
SECTION("sfSensorType")
|
||||
{
|
||||
STATIC_CHECK(sfSensorAccelerometer == static_cast<int>(sf::Sensor::Type::Accelerometer));
|
||||
STATIC_CHECK(sfSensorGyroscope == static_cast<int>(sf::Sensor::Type::Gyroscope));
|
||||
STATIC_CHECK(sfSensorMagnetometer == static_cast<int>(sf::Sensor::Type::Magnetometer));
|
||||
STATIC_CHECK(sfSensorGravity == static_cast<int>(sf::Sensor::Type::Gravity));
|
||||
STATIC_CHECK(sfSensorUserAcceleration == static_cast<int>(sf::Sensor::Type::UserAcceleration));
|
||||
STATIC_CHECK(sfSensorOrientation == static_cast<int>(sf::Sensor::Type::Orientation));
|
||||
STATIC_CHECK(sfSensorCount == sf::Sensor::Count);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user