Visual tests: complete endianness fixes #1130

This commit is contained in:
nick black 2020-12-09 01:16:46 +00:00
parent 6915e44cca
commit b99e6b8bc6

View File

@ -301,8 +301,8 @@ TEST_CASE("Visual") {
uint64_t channels;
char* egc = notcurses_at_yx(nc_, y, x, &stylemask, &channels);
REQUIRE(nullptr != egc);
CHECK((rgba[y * 2 * DIMX + x] & 0xffffff) == channels_bg_rgb(channels));
CHECK((rgba[(y * 2 + 1) * DIMX + x] & 0xffffff) == channels_fg_rgb(channels));
CHECK((htole(rgba[y * 2 * DIMX + x]) & 0xffffff) == channels_bg_rgb(channels));
CHECK((htole(rgba[(y * 2 + 1) * DIMX + x]) & 0xffffff) == channels_fg_rgb(channels));
free(egc);
}
}