mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
libslic3r tests converted to Catch2 v3
Still has 3 failing tests, but builds and runs.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include <catch2/catch.hpp>
|
||||
#include <test_utils.hpp>
|
||||
#include <catch2/catch_all.hpp>
|
||||
#include "test_utils.hpp"
|
||||
|
||||
#include <libslic3r/TriangleMesh.hpp>
|
||||
#include <libslic3r/MeshBoolean.hpp>
|
||||
@@ -19,7 +19,7 @@ TEST_CASE("CGAL and TriangleMesh conversions", "[MeshBoolean]") {
|
||||
REQUIRE(M.its.vertices.size() == sphere.its.vertices.size());
|
||||
REQUIRE(M.its.indices.size() == sphere.its.indices.size());
|
||||
|
||||
REQUIRE(M.volume() == Approx(sphere.volume()));
|
||||
REQUIRE(M.volume() == Catch::Approx(sphere.volume()));
|
||||
|
||||
REQUIRE(! MeshBoolean::cgal::does_self_intersect(M));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user