automation test: as_chunks for the preview pixel check (clippy 1.99 chunks_exact_to_as_chunks)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UHgFEHEsefoQoBParH47JA
This commit is contained in:
Claude committed 2026-10-09 03:32:19 +00:00
1 parent 2c82295e4c
commit 7406c26bd4
1 file changed
+1 -1
+1 -1
View File
@@ -643,7 +643,7 @@ async fn headless_previews_preserve_document_indices() {
let png = base64::engine::general_purpose::STANDARD.decode(&image.data).unwrap();
let image = photocraft_codecs::decode(&png).unwrap();
assert_eq!(image.dimensions(), dimensions);
assert!(image.to_rgba8().chunks_exact(4).all(|actual| actual == pixel));
assert!(image.to_rgba8().as_chunks::<4>().0.iter().all(|actual| actual[..] == pixel[..]));
}
assert_eq!(json_of(&call(&client, "session_list", json!({})).await)["active"], 1);
let tools = client.list_all_tools().await.unwrap();