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:
Hanif Koh
2026-09-14 01:32:07 +08:00
parent e30b0667d9
commit c14854587b
+1 -1
View File
@@ -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]")