mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 05:06:12 +01:00
Add tests for sfSocketStatus
This commit is contained in:
1 parent
84978f8acc
commit
10aaee1290
5 files changed
+36
-22
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#include <CSFML/Network/SocketStatus.h>
|
||||
|
||||
#include <SFML/Network/Socket.hpp>
|
||||
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
||||
TEST_CASE("[Network] sfSocketStatus")
|
||||
{
|
||||
STATIC_CHECK(sfSocketDone == static_cast<int>(sf::Socket::Status::Done));
|
||||
STATIC_CHECK(sfSocketNotReady == static_cast<int>(sf::Socket::Status::NotReady));
|
||||
STATIC_CHECK(sfSocketPartial == static_cast<int>(sf::Socket::Status::Partial));
|
||||
STATIC_CHECK(sfSocketDisconnected == static_cast<int>(sf::Socket::Status::Disconnected));
|
||||
STATIC_CHECK(sfSocketError == static_cast<int>(sf::Socket::Status::Error));
|
||||
}
|
||||
Reference in new issue
Block a user