14#include <doctest/doctest.h>
19SCENARIO(
"Check settings" * doctest::test_suite(
"settings"))
21 GIVEN(
"Settings are retrieved.")
23 WHEN(
"The integer type is queried.")
26 THEN(
"The value is std::int_fast32_t.")
28 fmt::print(
"TypeID of Int_precision is {}.\n", int_precision);
29 CHECK_EQ(int_precision,
typeid(std::int_fast32_t).name());
32 WHEN(
"MPFR precision is queried.")
35 THEN(
"The value is 256 bits.")
37 fmt::print(
"MPFR precision set to {}.\n", precision);
38 REQUIRE_EQ(precision, 256);
41 WHEN(
"Memory alignment is queried.")
44 THEN(
"The value is 64 bits.")
46 fmt::print(
"Memory alignment is set to {}.\n", align_64);
47 REQUIRE_EQ(align_64, 64);
50 THEN(
"The value is 32 bits.")
52 fmt::print(
"Memory alignment is set to {}.\n", align_32);
53 REQUIRE_EQ(align_32, 32);
Global integer and precision settings.
static int constexpr ALIGNMENT_32_BIT
Except when we only need 32 bits.
std::int_fast32_t Int_precision
static int constexpr ALIGNMENT_64_BIT
Aligns data for ease of access on 64-bit CPUs at the expense of padding.
static Int_precision constexpr PRECISION
Sets the precision for MPFR.
SCENARIO("Perform bistellar flip on Delaunay triangulation" *doctest::test_suite("bistellar"))