mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-16 05:27:50 +00:00
Fix Ambiguous WithinRel Call in Belt Apron Width Test
The widths are float, so pass a float epsilon; WithinRel(float, double) matches both overloads and does not compile.
This commit is contained in:
@@ -1086,7 +1086,7 @@ TEST_CASE("Belt brim lines all have the same width", "[SkirtBrim][belt]")
|
||||
REQUIRE(widths.size() > 10);
|
||||
const float lo = *std::min_element(widths.begin(), widths.end());
|
||||
const float hi = *std::max_element(widths.begin(), widths.end());
|
||||
CHECK_THAT(hi, Catch::Matchers::WithinRel(lo, 1e-4));
|
||||
CHECK_THAT(hi, Catch::Matchers::WithinRel(lo, 1e-4f));
|
||||
}
|
||||
|
||||
TEST_CASE("Belt apron survives another object printing at the same Z", "[SkirtBrim][belt]")
|
||||
|
||||
Reference in New Issue
Block a user