#include "colour.hpp" #include "tap.hpp" int main (int, char**) { cruft::TAP::logger tap; // Check casting works between intergral and floating formats { cruft::srgba<4,float> f {1.f}; cruft::srgba<4,uint8_t> u {255}; tap.expect_eq (f.cast (), u, "cast float to u8"); tap.expect_eq (u.cast (), f, "cast u8 to float"); } return tap.status (); }