add two additional tests for ring buffer
This commit is contained in:
parent
a891769a02
commit
8a44c498c5
@ -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") {
|
||||||
|
Loading…
Reference in New Issue
Block a user