One more fix of the G-code export unit test.

This commit is contained in:
Vojtech Bubnik 2021-11-17 10:29:35 +01:00
parent 2996527ee8
commit 9a5f4210c1

View File

@ -89,7 +89,7 @@ SCENARIO("set_speed emits values with fixed-point output.", "[GCodeWriter]") {
}
WHEN("set_speed is called to set speed to 203.200522") {
THEN("Output string is G1 F203.201") {
REQUIRE_THAT(GCodeFormatter::XYZF_EXPORT_DIGITS != 3 || writer.set_speed(203.200522), Catch::Equals("G1 F203.201\n"));
REQUIRE_THAT(writer.set_speed(203.200522), GCodeFormatter::XYZF_EXPORT_DIGITS != 3 || Catch::Equals("G1 F203.201\n"));
}
}
}