[sixel] fix unit tests on big-endian machines

This commit is contained in:
nick black 2022-02-20 19:41:12 -05:00
parent 2d7350c9ac
commit 8cd54b7932
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -28,7 +28,10 @@ TEST_CASE("Sixels") {
REQUIRE(ncv);
uint32_t p;
ncvisual_at_yx(ncv, 0, 0, &p);
CHECK(0xffcc2da8 == p);
CHECK(0xff == ncpixel_a(p));
CHECK(0xa8 == ncpixel_r(p));
CHECK(0x2d == ncpixel_g(p));
CHECK(0xcc == ncpixel_b(p));
ncvisual_destroy(ncv);
}