From 4c831c11f34301e2080273400d29bee613f58d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Mon, 10 Aug 2026 00:26:55 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20rustfmt=20drift=20in=20?= =?UTF-8?q?playback=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Formatting only -- no test changed, `cargo fmt --check -p engine` is clean again. --- crates/engine/tests/playback.rs | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/crates/engine/tests/playback.rs b/crates/engine/tests/playback.rs index ee426da..df89873 100644 --- a/crates/engine/tests/playback.rs +++ b/crates/engine/tests/playback.rs @@ -492,7 +492,10 @@ fn paste_while_playing_does_not_stall() { // Into the clip under the running playhead: the paste splits it in two and // lands between the halves. - assert!(session.paste_at(session.now(), copied), "paste at the playhead"); + assert!( + session.paste_at(session.now(), copied), + "paste at the playhead" + ); assert!(session.is_playing(), "the paste stopped the clock"); assert_eq!(session.clip_spans().len(), 4); let grown = total + copied.len(); @@ -506,11 +509,7 @@ fn paste_while_playing_does_not_stall() { // once, so this drains without `pump`'s index-order check. let (count, last) = drain_to_eof(&mut session); eprintln!("paste while playing: {count} more frames, last {last:?}"); - assert_eq!( - last, - Some(grown - 1), - "the grown timeline did not play out" - ); + assert_eq!(last, Some(grown - 1), "the grown timeline did not play out"); } /// Pasting past the end of a played-out timeline appends, and the reseek every @@ -528,9 +527,16 @@ fn paste_at_eos_revives_the_session() { assert_eq!(drain_to_eof(&mut session).1, Some(total - 1)); assert!(session.is_eos()); - assert!(session.paste_at(999.0, copied), "paste past the end appends"); + assert!( + session.paste_at(999.0, copied), + "paste past the end appends" + ); assert!(!session.is_eos(), "the paste did not revive the session"); - assert_eq!(session.clip_spans().len(), 3, "two clips plus the pasted one"); + assert_eq!( + session.clip_spans().len(), + 3, + "two clips plus the pasted one" + ); // No assertion on *where* it resumes: an edit reseeks to `now()`, and at EOS // that is wherever the wall clock got to while draining -- a race. What is // fixed is that frames come again and the whole grown timeline plays out.