Browse Source

Fix sla tests on mac

tamasmeszaros 4 years ago
parent
commit
2f422f5dbe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/sla_print/sla_test_utils.cpp

+ 1 - 1
tests/sla_print/sla_test_utils.cpp

@@ -208,7 +208,7 @@ void check_support_tree_integrity(const sla::SupportTreeBuilder &stree,
     };
     
     for (auto &bridge : stree.bridges()) chck_bridge(bridge, max_bridgelen);
-    REQUIRE(max_bridgelen <= cfg.max_bridge_length_mm);
+    REQUIRE(max_bridgelen <= Approx(cfg.max_bridge_length_mm));
     
     max_bridgelen = 0;
     for (auto &bridge : stree.crossbridges()) chck_bridge(bridge, max_bridgelen);