Test all filament slots

pull/44/head
D.R.racer 2021-07-01 07:35:34 +02:00 committed by DRracer
parent 974c1ba6db
commit d81b00a0f8
1 changed files with 7 additions and 2 deletions

View File

@ -29,8 +29,7 @@ namespace ms = modules::selector;
#include "../helpers/helpers.ipp"
TEST_CASE("cut_filament::cut0", "[cut_filament]") {
uint8_t cutSlot = 0;
void CutSlot(uint8_t cutSlot) {
ForceReinitAllAutomata();
@ -91,3 +90,9 @@ TEST_CASE("cut_filament::cut0", "[cut_filament]") {
REQUIRE(WhileTopState(cf, ProgressCode::ReturningSelector, 5000));
REQUIRE(VerifyState(cf, /*true*/ false, cutSlot, 5, false, ml::off, ml::off, ErrorCode::OK, ProgressCode::OK));
}
TEST_CASE("cut_filament::cut0", "[cut_filament]") {
for (uint8_t cutSlot = 0; cutSlot < 5; ++cutSlot) {
CutSlot(cutSlot);
}
}