diff --git a/tests/libslic3r/test_config.cpp b/tests/libslic3r/test_config.cpp index 412270420d..8e6915e98f 100644 --- a/tests/libslic3r/test_config.cpp +++ b/tests/libslic3r/test_config.cpp @@ -77,15 +77,15 @@ SCENARIO("Config accessor functions perform as expected.", "[Config]") { } } WHEN("An floating-point option is set through the integer interface") { - config.set("default_acceleration", 10); + config.set("max_bridge_length", 10); THEN("The underlying value is set correctly.") { - REQUIRE(config.opt("default_acceleration")->getFloat() == 10.0); + REQUIRE(config.opt("max_bridge_length")->getFloat() == 10.0); } } WHEN("A floating-point option is set through the double interface") { - config.set("default_acceleration", 5.5); + config.set("max_bridge_length", 5.5); THEN("The underlying value is set correctly.") { - REQUIRE(config.opt("default_acceleration")->getFloat() == 5.5); + REQUIRE(config.opt("max_bridge_length")->getFloat() == 5.5); } } WHEN("An integer-based option is set through the double interface") { @@ -94,12 +94,12 @@ SCENARIO("Config accessor functions perform as expected.", "[Config]") { } } WHEN("A numeric option is set to a non-numeric value.") { - auto prev_value = config.opt("default_acceleration")->getFloat(); + auto prev_value = config.opt("max_bridge_length")->getFloat(); THEN("A BadOptionTypeException exception is thrown.") { - REQUIRE_THROWS_AS(config.set_deserialize_strict("default_acceleration", "zzzz"), BadOptionValueException); + REQUIRE_THROWS_AS(config.set_deserialize_strict("max_bridge_length", "zzzz"), BadOptionValueException); } THEN("The value does not change.") { - REQUIRE(config.opt("default_acceleration")->getFloat() == prev_value); + REQUIRE(config.opt("max_bridge_length")->getFloat() == prev_value); } } WHEN("A string option is set through the string interface") { diff --git a/tests/libslic3r/test_placeholder_parser.cpp b/tests/libslic3r/test_placeholder_parser.cpp index 93c848b3a2..6654a42bee 100644 --- a/tests/libslic3r/test_placeholder_parser.cpp +++ b/tests/libslic3r/test_placeholder_parser.cpp @@ -72,8 +72,9 @@ SCENARIO("Placeholder parser scripting", "[PlaceholderParser]") { SECTION("min_width_top_surface") { REQUIRE(std::stod(parser.process("{min_width_top_surface}")) == Catch::Approx(2.7)); } // Orca: this one is not coFloatOrPercent //SECTION("support_object_xy_distance") { REQUIRE(std::stod(parser.process("{support_object_xy_distance}")) == Catch::Approx(0.3375)); } + // Orca: this one is not coFloatOrPercent // small_perimeter_speed over outer_wall_speed - SECTION("small_perimeter_speed") { REQUIRE(std::stod(parser.process("{small_perimeter_speed}")) == Catch::Approx(30.)); } + //SECTION("small_perimeter_speed") { REQUIRE(std::stod(parser.process("{small_perimeter_speed}")) == Catch::Approx(30.)); } // infill_anchor over sparse_infill_line_width SECTION("infill_anchor") { REQUIRE(std::stod(parser.process("{infill_anchor}")) == Catch::Approx(2.7)); } // If scarf_joint_speed is set to percent, then it is applied over respective extrusion types by overriding their respective speeds.