SFML/test/System/Config.test.cpp

15 lines
455 B
C++
Raw Normal View History

2022-07-12 12:56:57 +08:00
#include <SFML/Config.hpp>
2023-01-18 12:51:08 +08:00
#include <catch2/catch_test_macros.hpp>
2022-07-12 12:56:57 +08:00
TEST_CASE("[System] SFML/Config.hpp")
2022-07-12 12:56:57 +08:00
{
2023-01-18 12:51:08 +08:00
SECTION("Version macros")
2022-07-12 12:56:57 +08:00
{
2023-01-18 12:51:08 +08:00
STATIC_CHECK(SFML_VERSION_MAJOR == EXPECTED_SFML_VERSION_MAJOR);
STATIC_CHECK(SFML_VERSION_MINOR == EXPECTED_SFML_VERSION_MINOR);
STATIC_CHECK(SFML_VERSION_PATCH == EXPECTED_SFML_VERSION_PATCH);
STATIC_CHECK(SFML_VERSION_IS_RELEASE == EXPECTED_SFML_VERSION_IS_RELEASE);
2022-07-12 12:56:57 +08:00
}
}