test(jxl): exercise float conversion with valid minimum encoder dimensions

This commit is contained in:
Nigel Ihza Firdausy committed 2026-10-11 17:07:49 +07:00
1 parent aee67e8194
commit a2a8fa0668
1 file changed
+1 -1
+1 -1
View File
@@ -26,7 +26,7 @@ fn jpeg_xl_encoding_is_deterministic_and_converts_float_to_integer() {
let two = encode(&input, Format::Jxl, &opts).unwrap();
assert_eq!(one, two);
assert_eq!(detect(&one), Some(Format::Jxl));
let float = Image::from_f32(1, 1, ChannelLayout::Rgb, &[0.0, 0.5, 1.0]).unwrap();
let float = Image::from_f32(2, 2, ChannelLayout::Rgb, &[0.0, 0.5, 1.0, 0.25, 0.5, 0.75, 0.75, 0.5, 0.25, 1.0, 0.0, 0.5]).unwrap();
let bytes = encode(&float, Format::Jxl, &opts).unwrap();
assert_eq!(detect(&bytes), Some(Format::Jxl));
}