diff --git a/tests/test_measure.cpp b/tests/test_measure.cpp index f7cc4ae..e8da1fd 100644 --- a/tests/test_measure.cpp +++ b/tests/test_measure.cpp @@ -1,4 +1,5 @@ #include +#include // for testing #include @@ -25,4 +26,11 @@ TEST_CASE("Test Mesh Mock") double area = xdg.measure_volume_area(mm->volumes()[0]); REQUIRE_THAT(area, Catch::Matchers::WithinAbs(478., 1e-6)); + std::vector surface_areas = {63., 63., 99., 99., 77., 77.}; + + for (int i = 0; i < mm->surfaces().size(); ++i) { + double area = xdg.measure_surface_area(mm->surfaces()[i]); + REQUIRE_THAT(area, Catch::Matchers::WithinAbs(surface_areas[i], 1e-6)); + } + } \ No newline at end of file