From c14854587b0517226bac157702695fe46c2c99da Mon Sep 17 00:00:00 2001 From: Hanif Koh Date: Fri, 11 Sep 2026 16:35:01 +0800 Subject: [PATCH] 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. --- tests/fff_print/test_skirt_brim.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fff_print/test_skirt_brim.cpp b/tests/fff_print/test_skirt_brim.cpp index a37d6a7fa2..a34d28abae 100644 --- a/tests/fff_print/test_skirt_brim.cpp +++ b/tests/fff_print/test_skirt_brim.cpp @@ -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]")