From 08d57ca15c3ed5ac46ab48185fe5ac96cb380dff Mon Sep 17 00:00:00 2001 From: alexanderalber <90604107+alexanderalber@users.noreply.github.com> Date: Sat, 10 Oct 2026 12:17:24 +0200 Subject: [PATCH] Morph test: sort the ids before dedup so it really checks uniqueness (#25) dedup only removes consecutive duplicates, so two equal ids that were not adjacent would have passed. Follow-up to the review note on #5. generated with Claude Code --- crates/anim/src/tests.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/anim/src/tests.rs b/crates/anim/src/tests.rs index 005c69f..da35625 100644 --- a/crates/anim/src/tests.rs +++ b/crates/anim/src/tests.rs @@ -569,6 +569,7 @@ fn morph_frame_moves_blends_and_fades() { assert!((f.opacity_of(f.shapes[2].0.id) - 0.5).abs() < 1e-9); // Ids are fresh and unique. let mut ids: Vec<_> = f.shapes.iter().map(|(s, _)| s.id).collect(); + ids.sort(); ids.dedup(); assert_eq!(ids.len(), 3); assert!(ids.iter().all(|i| i.0 > 4));