#include #include #include #include "Image/ImageFormat.h" namespace image::image_format { TEST_CASE("ImageFormat: EnsureAllFormatsArrayIndicesAreIds", "[image]") { REQUIRE(static_cast(ImageFormatId::MAX) == std::extent::value); for(unsigned i = 0; i < std::extent::value; i++) { REQUIRE(ImageFormat::ALL_FORMATS[i] != nullptr); REQUIRE(i == static_cast(ImageFormat::ALL_FORMATS[i]->GetId())); } } }