add two additional tests for ring buffer

This commit is contained in:
Cleanroom Laptop L590 2022-03-24 16:50:59 +01:00
parent a891769a02
commit 8a44c498c5

View File

@ -31,6 +31,8 @@ TEST_CASE("Ring Buffer Test", "[RingBufferTest]") {
for (uint8_t i = 0; i < 9; i++) { for (uint8_t i = 0; i < 9; i++) {
CHECK(readBuffer[i] == i); CHECK(readBuffer[i] == i);
} }
REQUIRE(ringBuffer.writeData(testData, 1024) == retval::CATCH_FAILED);
REQUIRE(ringBuffer.writeData(nullptr, 5) == retval::CATCH_FAILED);
} }
SECTION("Get Free Element Test") { SECTION("Get Free Element Test") {