From e1e17af67133ace5528da6da42017d71ebef2ca3 Mon Sep 17 00:00:00 2001 From: alehel Date: Sun, 15 Nov 2026 01:50:28 +0100 Subject: [PATCH] test(media): VMD frame as high as the picture but not as wide Review round 3 found no defect; this closes the one placement case the unit test did not pin. --- crates/media/src/vmd/tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/media/src/vmd/tests.rs b/crates/media/src/vmd/tests.rs index 88db37cdb..302de93ad 100644 --- a/crates/media/src/vmd/tests.rs +++ b/crates/media/src/vmd/tests.rs @@ -128,6 +128,8 @@ fn picture_rect_follows_the_picture_position() { ); // as wide as the picture but not as high is an ordinary frame assert_eq!(rects((0, 0), &[([3, 2, 22, 8], 1), ([3, 2, 5, 5], 1)]), [None, at(3, 2, 5, 5)]); + // and so is one as high but not as wide + assert_eq!(rects((0, 0), &[([3, 2, 10, 11], 1), ([3, 2, 5, 5], 1)]), [None, at(3, 2, 5, 5)]); // inverted and oversized frames are outside assert_eq!( rects((0, 0), &[([2, 0, 5, 0], 1), ([5, 0, 4, 0], 1), ([0, 1, 0, 0], 1), ([0, 0, 20, 9], 1), ([0, 0, 19, 10], 1)]),