Use .values[0]

This commit is contained in:
Joseph Lenox 2018-07-30 11:16:02 -05:00
parent fd865af408
commit b647bc49c8

View File

@ -24,7 +24,7 @@ SCENARIO("lift() is not ignored after unlift() at large values of Z", "[!mayfail
AND_WHEN("GcodeWriter::Lift() is called") {
REQUIRE(writer.lift().size() > 0);
AND_WHEN("Z is moved post-lift to the same delta as the config Z lift") {
REQUIRE(writer.travel_to_z(trouble_Z + config.retract_lift.value).size() == 0);
REQUIRE(writer.travel_to_z(trouble_Z + config.retract_lift.values[0]).size() == 0);
AND_WHEN("GCodeWriter::Lift() is called after GCodeWriter::Unlift()") {
REQUIRE(writer.unlift().size() > 0);
THEN("GCodeWriter::Lift() emits gcode.") {