2022-07-25 14:36:05 +08:00
|
|
|
#include <SFML/Window/Window.hpp>
|
|
|
|
|
2023-03-10 08:38:14 +08:00
|
|
|
// Other 1st party headers
|
|
|
|
#include <SFML/System/String.hpp>
|
|
|
|
#include <SFML/Window/VideoMode.hpp>
|
|
|
|
|
|
|
|
#include <doctest/doctest.h>
|
|
|
|
|
|
|
|
#include <WindowUtil.hpp>
|
2022-07-25 14:36:05 +08:00
|
|
|
#include <type_traits>
|
|
|
|
|
|
|
|
static_assert(!std::is_copy_constructible_v<sf::Window>);
|
|
|
|
static_assert(!std::is_copy_assignable_v<sf::Window>);
|
|
|
|
static_assert(!std::is_nothrow_move_constructible_v<sf::Window>);
|
|
|
|
static_assert(!std::is_nothrow_move_assignable_v<sf::Window>);
|
2023-03-10 08:38:14 +08:00
|
|
|
|
|
|
|
TEST_CASE("[Window] sf::Window" * doctest::skip(skipDisplayTests))
|
|
|
|
{
|
|
|
|
SUBCASE("Construction")
|
|
|
|
{
|
|
|
|
sf::Window window(sf::VideoMode(sf::Vector2u(256, 256), 32), "Window Title", sf::Style::Default, sf::ContextSettings());
|
|
|
|
CHECK(window.getSize() == sf::Vector2u(256, 256));
|
|
|
|
}
|
|
|
|
}
|