mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 13:30:29 +00:00
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:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user