15namespace sequoia::testing
18 maths::convex_space PhysicalValueSpace,
19 physics::physical_unit Unit,
20 maths::basis_for<maths::free_module_type_of_t<PhysicalValueSpace>> Basis,
27 using value_type = type::value_type;
28 constexpr static auto dimension{type::dimension};
30 template<test_mode Mode>
33 if constexpr(dimension == 1)
35 check(equality,
"Wrapped Value", logger, actual.value(), prediction.value());
39 check(equality,
"Wrapped Values", logger, actual.values(), prediction.values());
43 template<test_mode Mode>
44 requires (dimension == 1)
47 check(equality,
"Wrapped Value", logger, actual.value(), prediction);
50 template<test_mode Mode>
51 requires (dimension > 1)
54 check(equivalence,
"Wrapped Values", logger, actual.values(), prediction);
65 inline constexpr bool defines_physical_value_v{
bool check(CheckType flavour, std::string description, test_logger< Mode > &logger, Iter first, Sentinel last, PredictionIter predictionFirst, PredictionSentinel predictionLast, tutor< Advisor > advisor={})
The workhorse for comparing the contents of ranges.
Definition: FreeCheckers.hpp:377
Utilities for checking regular semantics.
Definition: PhysicalValues.hpp:451
Definition: TestLogger.hpp:183
A concept to determine if a basis is appropriate for a particular free module.
Definition: Spaces.hpp:620
concept for convex spaces
Definition: Spaces.hpp:517
Definition: FreeCheckers.hpp:82
Definition: FreeCheckers.hpp:87
class template, specializations of which implement various comparisons for the specified type.
Definition: FreeCheckers.hpp:78