Merge pull request 'small fix for DLE unittest' (#490) from mueller/dle-encoder-test-fix into development

Reviewed-on: fsfw/fsfw#490
This commit is contained in:
Robin Müller 2021-09-29 14:27:10 +02:00
commit 0a2c912f29

View File

@ -103,7 +103,7 @@ TEST_CASE("DleEncoder" , "[DleEncoder]") {
for(size_t faultyDestSize = 0; faultyDestSize < expectedVec.size(); faultyDestSize ++) {
result = dleEncoder.encode(vecToEncode.data(), vecToEncode.size(),
buffer.data(), faultyDestSize, &encodedLen);
REQUIRE(result == DleEncoder::STREAM_TOO_SHORT);
REQUIRE(result == static_cast<int>(DleEncoder::STREAM_TOO_SHORT));
}
};