Fix pulse gen unit tests with the larger block buffer

pull/135/head
D.R.racer 2021-10-29 17:19:51 +02:00 committed by DRracer
parent 5f1e3e018e
commit c3aec0bf92
1 changed files with 5 additions and 4 deletions

View File

@ -175,12 +175,13 @@ TEST_CASE("pulse_gen::queue_size", "[pulse_gen]") {
// queue should start empty
REQUIRE(pg.QueueEmpty());
// queue the first move
CHECK(pg.PlanMoveTo(10, 1));
REQUIRE(!pg.QueueEmpty());
for (uint8_t i = 0; i < config::blockBufferSize - 1; ++i) {
CHECK(pg.PlanMoveTo(10 + i, 1));
REQUIRE(!pg.QueueEmpty());
}
// queue a second move to fill the queue
CHECK(pg.PlanMoveTo(15, 1));
CHECK(pg.PlanMoveTo(100, 1));
REQUIRE(pg.Full());
// further enqueuing should fail