mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 12:27:14 +02:00
tests add to namespace sls (#466)
* tests add to namespace sls * fixed for tests * finish up namespace sls for tests
This commit is contained in:
@ -3,6 +3,9 @@
|
||||
#include "catch.hpp"
|
||||
#include "sls/ZmqSocket.h"
|
||||
|
||||
namespace sls {
|
||||
|
||||
|
||||
TEST_CASE("Throws when cannot create socket") {
|
||||
REQUIRE_THROWS(ZmqSocket("sdiasodjajpvv", 5076001));
|
||||
}
|
||||
@ -113,4 +116,6 @@ TEST_CASE("Send header and data") {
|
||||
for (size_t i = 0; i != data.size(); ++i) {
|
||||
REQUIRE(data[i] == received_data[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} //namespace
|
Reference in New Issue
Block a user