Fix pulse gen unit tests with the larger block buffer
parent
5f1e3e018e
commit
c3aec0bf92
|
|
@ -175,12 +175,13 @@ TEST_CASE("pulse_gen::queue_size", "[pulse_gen]") {
|
||||||
// queue should start empty
|
// queue should start empty
|
||||||
REQUIRE(pg.QueueEmpty());
|
REQUIRE(pg.QueueEmpty());
|
||||||
|
|
||||||
// queue the first move
|
for (uint8_t i = 0; i < config::blockBufferSize - 1; ++i) {
|
||||||
CHECK(pg.PlanMoveTo(10, 1));
|
CHECK(pg.PlanMoveTo(10 + i, 1));
|
||||||
REQUIRE(!pg.QueueEmpty());
|
REQUIRE(!pg.QueueEmpty());
|
||||||
|
}
|
||||||
|
|
||||||
// queue a second move to fill the queue
|
// queue a second move to fill the queue
|
||||||
CHECK(pg.PlanMoveTo(15, 1));
|
CHECK(pg.PlanMoveTo(100, 1));
|
||||||
REQUIRE(pg.Full());
|
REQUIRE(pg.Full());
|
||||||
|
|
||||||
// further enqueuing should fail
|
// further enqueuing should fail
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue