| 43 | |
| 44 | template<typename T, size_t size> requires(2 <= size && size <= 4) |
| 45 | void 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 | |
| 55 | TEMPLATE_TEST_CASE_SIG("Point Initialization", "[point][init]", VECTOR_TYPES_MATRIX) |
| 56 | { |
no test coverage detected