14namespace sequoia::testing
16 template<test_mode Mode>
20 constexpr static test_mode mode{Mode};
24 template<
class G,
class... NodeWeights,
class E=
typename G::edge_init_type,
class Self>
25 void check_graph(
this Self&& self,
const reporter& description,
const G& graph, std::initializer_list<std::initializer_list<E>> edges,
const std::tuple<NodeWeights...>& nodeWeights)
27 testing::check(weak_equivalence, self.report(description), self.m_Logger, graph, std::pair{edges, nodeWeights});
30 template<
class G,
class E=
typename G::edge_init_typ,
class Self>
31 requires (!std::is_empty_v<typename G::node_weight_type>)
32 void check_graph(
this Self&& self,
const reporter& description,
const G& graph, std::initializer_list<std::initializer_list<E>> edges, std::initializer_list<typename G::node_weight_type> nodeWeights)
34 testing::check(weak_equivalence, self.report(description), self.m_Logger, graph, std::pair{edges, nodeWeights});
37 template<
class G,
class E=
typename G::edge_init_type,
class Self>
38 requires std::is_empty_v<typename G::node_weight_type>
39 void check_graph(
this Self&& self,
const reporter& description,
const G& graph, std::initializer_list<std::initializer_list<E>> edges)
41 testing::check(weak_equivalence, self.report(description), self.m_Logger, graph, edges);
50 template<test_mode Mode>
class template from which all concrete tests should derive.
Definition: FreeTestCore.hpp:144
Definition: GraphInitializationTestingUtilities.hpp:18
Definition: Output.hpp:186