mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-20 00:37:12 +02:00
starting tests
This commit is contained in:
13
tests/src/test-MySocketTCP.cpp
Normal file
13
tests/src/test-MySocketTCP.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include "catch.hpp"
|
||||
#include "MySocketTCP.h"
|
||||
// #include "multiSlsDetector.h"
|
||||
#include <iostream>
|
||||
TEST_CASE("Construct") {
|
||||
|
||||
|
||||
// MySocketTCP(const char* const host_ip_or_name, unsigned short int const port_number): genericSocket(host_ip_or_name, port_number,TCP){setPacketSize(TCP_PACKET_SIZE);}; // sender (client): where to? ip
|
||||
unsigned short int const port_number = 1966;
|
||||
auto receiver = MySocketTCP(port_number);
|
||||
REQUIRE(false);
|
||||
|
||||
}
|
@ -7,7 +7,6 @@
|
||||
using sls::allEqual;
|
||||
using sls::allEqualTo;
|
||||
using sls::anyEqualTo;
|
||||
|
||||
using sls::allEqualToWithTol;
|
||||
using sls::allEqualWithTol;
|
||||
using sls::anyEqualToWithTol;
|
||||
|
@ -1,11 +1,11 @@
|
||||
#include "catch.hpp"
|
||||
#include "multiSlsDetector.h"
|
||||
// #include "catch.hpp"
|
||||
// #include "multiSlsDetector.h"
|
||||
|
||||
#include <iostream>
|
||||
TEST_CASE("Initialize a detector") {
|
||||
multiSlsDetector det(0, true, true);
|
||||
std::cout << "Size: " << det.getNumberOfDetectors() << std::endl;
|
||||
std::cout << "Hostname: " << det.getHostname() << std::endl;
|
||||
REQUIRE(false);
|
||||
// #include <iostream>
|
||||
// TEST_CASE("Initialize a detector") {
|
||||
// multiSlsDetector det(0, true, true);
|
||||
// std::cout << "Size: " << det.getNumberOfDetectors() << std::endl;
|
||||
// std::cout << "Hostname: " << det.getHostname() << std::endl;
|
||||
// REQUIRE(false);
|
||||
|
||||
}
|
||||
// }
|
Reference in New Issue
Block a user