finally it works

This commit is contained in:
Robin Müller 2023-07-27 15:07:14 +02:00
parent 0f208ec75a
commit f49e607881
Signed by: muellerr
GPG Key ID: 407F9B00F858F270

View File

@ -60,6 +60,12 @@ TEST_CASE("Reserved Message Parser", "[cfdp]") {
CHECK(putRequest.getDestId().getWidth() == entityId.getWidth());
size_t sourceNameSize = 0;
auto& sourceNameLv = putRequest.getSourceName();
sourceNameLv.getString(sourceNameSize);
const char* sourceString = sourceNameLv.getString(sourceNameSize);
CHECK(sourceNameSize == srcFileName.size());
CHECK(std::strncmp(sourceString, srcFileName.c_str(), sourceNameSize) == 0);
size_t destNameSize = 0;
auto& destNameLv = putRequest.getDestName();
const char* destString = destNameLv.getString(destNameSize);
CHECK(destNameSize == destFileName.size());
CHECK(std::strncmp(destString, destFileName.c_str(), destNameSize) == 0);
}