libghostty: fix expected format in image_get test

The test transmits an image with f=24 (24-bit RGB) but was asserting
that the format field equals .rgba (32-bit). Corrected the expectation
to .rgb to match the transmitted pixel format.
This commit is contained in:
Mitchell Hashimoto
2026-04-06 10:09:06 -07:00
parent 426dc40799
commit 68a8cbb065

View File

@@ -583,7 +583,7 @@ test "image_get_handle and image_get with transmitted image" {
var fmt: ImageFormat = undefined;
try testing.expectEqual(Result.success, image_get(img, .format, @ptrCast(&fmt)));
try testing.expectEqual(.rgba, fmt);
try testing.expectEqual(.rgb, fmt);
var comp: ImageCompression = undefined;
try testing.expectEqual(Result.success, image_get(img, .compression, @ptrCast(&comp)));