Fix pulse gen unit tests with the larger block buffer

pull/133/head
D.R.racer 2021-10-29 17:19:51 +02:00
parent 11e95cfa06
commit 30a9b7e7df
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