mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-14 11:16:53 -04:00
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
(cherry picked from commit 7406c26bd4)
This commit is contained in:
1 parent
0e0311d245
commit
cff8daf185
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user