MCPcopy Create free account
hub / github.com/MethanePowered/MethaneKit / CheckPoint

Function CheckPoint

Tests/Data/Types/PointTest.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44template<typename T, size_t size> requires(2 <= size && size <= 4)
45void CheckPoint(const Point<T, size>& point, const std::array<T, size>& components)
46{
47 CHECK(point.GetX() == Approx(components[0]));
48 CHECK(point.GetY() == Approx(components[1]));
49 if constexpr (size > 2)
50 CHECK(point.GetZ() == Approx(components[2]));
51 if constexpr (size > 3)
52 CHECK(point.GetW() == Approx(components[3]));
53}
54
55TEMPLATE_TEST_CASE_SIG("Point Initialization", "[point][init]", VECTOR_TYPES_MATRIX)
56{

Callers 1

PointTest.cppFile · 0.85

Calls 4

GetXMethod · 0.45
GetYMethod · 0.45
GetZMethod · 0.45
GetWMethod · 0.45

Tested by

no test coverage detected