11#include <doctest/doctest.h>
15SCENARIO(
"Torus construction" * doctest::test_suite(
"torus"))
17 std::size_t
constexpr NUMBER_OF_POINTS = 250;
18 std::vector<Point> points;
19 points.reserve(NUMBER_OF_POINTS);
22 WHEN(
"A 2-torus is constructed.")
24 THEN(
"It should not throw.")
26 int constexpr dim = 3;
27 REQUIRE_NOTHROW(
make_d_cube(points, NUMBER_OF_POINTS, dim));
31 GIVEN(
"A constructed 2-torus")
33 int constexpr dim = 3;
35 WHEN(
"The type is queried")
37 THEN(
"A result should be returned.")
39 fmt::print(
"Torus = {}",
40 boost::typeindex::type_id_with_cvr<
decltype(points)>()
47 WHEN(
"A 3-torus is constructed.")
49 THEN(
"It should not throw.")
51 int constexpr dim = 4;
52 REQUIRE_NOTHROW(
make_d_cube(points, NUMBER_OF_POINTS, dim));
Functions on d-dimensional torus.
auto make_d_cube(std::vector< Point > t_points, std::size_t t_number_of_points, int t_dimension)
Make a d-dimensional torus.
SCENARIO("Perform bistellar flip on Delaunay triangulation" *doctest::test_suite("bistellar"))