mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
23 lines
558 B
C++
23 lines
558 B
C++
#include <SFML/Window/Event.hpp>
|
|
|
|
#include <catch2/catch_test_macros.hpp>
|
|
|
|
#include <type_traits>
|
|
|
|
TEST_CASE("[Window] sf::Event")
|
|
{
|
|
SECTION("Type traits")
|
|
{
|
|
STATIC_CHECK(std::is_copy_constructible_v<sf::Event>);
|
|
STATIC_CHECK(std::is_copy_assignable_v<sf::Event>);
|
|
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Event>);
|
|
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Event>);
|
|
}
|
|
|
|
SECTION("Construction")
|
|
{
|
|
const sf::Event event{};
|
|
CHECK(event.type == sf::Event::Closed);
|
|
}
|
|
}
|