test added
This commit is contained in:
parent
0f90d50065
commit
f76f462022
@ -218,5 +218,10 @@ TEST_CASE("DleEncoder" , "[DleEncoder]") {
|
|||||||
REQUIRE(result == static_cast<int>(DleEncoder::DECODING_ERROR));
|
REQUIRE(result == static_cast<int>(DleEncoder::DECODING_ERROR));
|
||||||
|
|
||||||
dleEncoder.setEscapeMode(true);
|
dleEncoder.setEscapeMode(true);
|
||||||
|
testArray1EncodedFaulty = TEST_ARRAY_1_ENCODED_ESCAPED;
|
||||||
|
testArray1EncodedFaulty[5] = 0;
|
||||||
|
result = dleEncoder.decode(testArray1EncodedFaulty.data(), testArray1EncodedFaulty.size(),
|
||||||
|
&readLen, buffer.data(), buffer.size(), &encodedLen);
|
||||||
|
REQUIRE(result == static_cast<int>(DleEncoder::DECODING_ERROR));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user