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,23 @@
|
||||
#include <CSFML/Window/WindowBase.h>
|
||||
|
||||
#include <SFML/Window/WindowBase.hpp>
|
||||
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
||||
TEST_CASE("[Window] sfWindowBase")
|
||||
{
|
||||
SECTION("sfWindowStyle")
|
||||
{
|
||||
STATIC_CHECK(sfNone == static_cast<int>(sf::Style::None));
|
||||
STATIC_CHECK(sfTitlebar == static_cast<int>(sf::Style::Titlebar));
|
||||
STATIC_CHECK(sfResize == static_cast<int>(sf::Style::Resize));
|
||||
STATIC_CHECK(sfClose == static_cast<int>(sf::Style::Close));
|
||||
STATIC_CHECK(sfDefaultStyle == static_cast<int>(sf::Style::Default));
|
||||
}
|
||||
|
||||
SECTION("sfWindowState")
|
||||
{
|
||||
STATIC_CHECK(sfWindowed == static_cast<int>(sf::State::Windowed));
|
||||
STATIC_CHECK(sfFullscreen == static_cast<int>(sf::State::Fullscreen));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user