mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 07:41:05 +08:00
63088c1bf1
I added move semantics while I was at it
28 lines
723 B
C++
28 lines
723 B
C++
#include <SFML/Network/SocketSelector.hpp>
|
|
|
|
// Other 1st party headers
|
|
#include <SFML/Network/UdpSocket.hpp>
|
|
|
|
#include <catch2/catch_test_macros.hpp>
|
|
|
|
#include <type_traits>
|
|
|
|
TEST_CASE("[Network] sf::SocketSelector")
|
|
{
|
|
SECTION("Type traits")
|
|
{
|
|
STATIC_CHECK(std::is_copy_constructible_v<sf::SocketSelector>);
|
|
STATIC_CHECK(std::is_copy_assignable_v<sf::SocketSelector>);
|
|
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::SocketSelector>);
|
|
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::SocketSelector>);
|
|
}
|
|
|
|
sf::UdpSocket socket;
|
|
|
|
SECTION("Construction")
|
|
{
|
|
const sf::SocketSelector socketSelector;
|
|
CHECK(!socketSelector.isReady(socket));
|
|
}
|
|
}
|