forge
Explore
Log in

Don't you dare go Hollow

Rustfmt drift in playback tests

Browse files at this commit

4c831c11f34301e2080273400d29bee613f58d6eAhmet Kaan GümüşParent: 9276137
  • style
    • rustfmt drift in playback tests
Show full message
🎨 style: rustfmt drift in playback tests

Formatting only -- no test changed, `cargo fmt --check -p engine` is clean
again.
crates/engine/tests/playback.rsmodified+14 -8
@@ -492,7 +492,10 @@ fn paste_while_playing_does_not_stall() {
492 492
493 // Into the clip under the running playhead: the paste splits it in two and493 // Into the clip under the running playhead: the paste splits it in two and
494 // lands between the halves.494 // lands between the halves.
495- assert!(session.paste_at(session.now(), copied), "paste at the playhead");495+ assert!(
496+ session.paste_at(session.now(), copied),
497+ "paste at the playhead"
498+ );
496 assert!(session.is_playing(), "the paste stopped the clock");499 assert!(session.is_playing(), "the paste stopped the clock");
497 assert_eq!(session.clip_spans().len(), 4);500 assert_eq!(session.clip_spans().len(), 4);
498 let grown = total + copied.len();501 let grown = total + copied.len();
@@ -506,11 +509,7 @@ fn paste_while_playing_does_not_stall() {
506 // once, so this drains without `pump`'s index-order check.509 // once, so this drains without `pump`'s index-order check.
507 let (count, last) = drain_to_eof(&mut session);510 let (count, last) = drain_to_eof(&mut session);
508 eprintln!("paste while playing: {count} more frames, last {last:?}");511 eprintln!("paste while playing: {count} more frames, last {last:?}");
509- assert_eq!(512+ assert_eq!(last, Some(grown - 1), "the grown timeline did not play out");
510- last,
511- Some(grown - 1),
512- "the grown timeline did not play out"
513- );
514 }513 }
515 514
516 /// Pasting past the end of a played-out timeline appends, and the reseek every515 /// 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() {
528 assert_eq!(drain_to_eof(&mut session).1, Some(total - 1));527 assert_eq!(drain_to_eof(&mut session).1, Some(total - 1));
529 assert!(session.is_eos());528 assert!(session.is_eos());
530 529
531- assert!(session.paste_at(999.0, copied), "paste past the end appends");530+ assert!(
531+ session.paste_at(999.0, copied),
532+ "paste past the end appends"
533+ );
532 assert!(!session.is_eos(), "the paste did not revive the session");534 assert!(!session.is_eos(), "the paste did not revive the session");
533- assert_eq!(session.clip_spans().len(), 3, "two clips plus the pasted one");535+ assert_eq!(
536+ session.clip_spans().len(),
537+ 3,
538+ "two clips plus the pasted one"
539+ );
534 // No assertion on *where* it resumes: an edit reseeks to `now()`, and at EOS540 // No assertion on *where* it resumes: an edit reseeks to `now()`, and at EOS
535 // that is wherever the wall clock got to while draining -- a race. What is541 // that is wherever the wall clock got to while draining -- a race. What is
536 // fixed is that frames come again and the whole grown timeline plays out.542 // fixed is that frames come again and the whole grown timeline plays out.