forge
Explore
Log in

Don't you dare go Hollow

Saveload expectations learn three format bumps

Browse files at this commit

86a2cd708a477f0421ae97f416c8fe688f6b6562Ahmet Kaan GümüşParent: ef5832f
  • fix
    • saveload expectations learn three format bumps
Show full message
🐛 fix(engine): saveload expectations learn three format bumps
crates/engine/tests/saveload.rsmodified+13 -13
@@ -379,9 +379,9 @@ fn a_version_4_project_holds_more_than_two_lanes() {
379 loaded.save_project(&again).expect("save");379 loaded.save_project(&again).expect("save");
380 assert_eq!(380 assert_eq!(
381 std::fs::read_to_string(&again).expect("read back"),381 std::fs::read_to_string(&again).expect("read back"),
382- "edith 16\nplayhead 0\nresolution 1280 720\nfps 30.0\nsource 0 test_av.mp4\n\382+ "edith 20\nplayhead 0\nresolution 1280 720\nfps 30.0\nsource 0 test_av.mp4\n\
383- video 1 0 0 30 0 3 - - fit 1000\naudio 1\n\383+ video 1 0 0 30 0 3 - - fit 1000 0 0 0 -\naudio 1\n\
384- video 2 40 0 20 0 - - - fit 1000\naudio 2 0 0 30 0 3 - - fit 1000\n",384+ video 2 40 0 20 0 - - - fit 1000 0 0 0 -\naudio 2 0 0 30 0 3 - - fit 1000 0 0 0 -\n",
385 "a four-lane project is written as it was read, three versions on"385 "a four-lane project is written as it was read, three versions on"
386 );386 );
387 }387 }
@@ -409,11 +409,11 @@ fn a_version_5_project_carries_per_clip_equalizers() {
409 loaded.save_project(&again).expect("save");409 loaded.save_project(&again).expect("save");
410 assert_eq!(410 assert_eq!(
411 std::fs::read_to_string(&again).expect("read back"),411 std::fs::read_to_string(&again).expect("read back"),
412- "edith 16\nplayhead 0\nresolution 1280 720\nfps 30.0\nsource 0 test_av.mp4\n\412+ "edith 20\nplayhead 0\nresolution 1280 720\nfps 30.0\nsource 0 test_av.mp4\n\
413 eq 80.0:-3.0:0.707:ls 1000.0:4.5:1.0:pk\n\413 eq 80.0:-3.0:0.707:ls 1000.0:4.5:1.0:pk\n\
414 eq 12000.0:6.25:0.5:hs\n\414 eq 12000.0:6.25:0.5:hs\n\
415- video 1 0 0 30 0 - 0 - fit 1000\nvideo 1 30 30 60 0 - 1 - fit 1000\n\415+ video 1 0 0 30 0 - 0 - fit 1000 0 0 0 -\nvideo 1 30 30 60 0 - 1 - fit 1000 0 0 0 -\n\
416- audio 1 0 0 30 0 - 0 - fit 1000\naudio 1 30 30 60 0 - - - fit 1000\n",416+ audio 1 0 0 30 0 - 0 - fit 1000 0 0 0 -\naudio 1 30 30 60 0 - - - fit 1000 0 0 0 -\n",
417 "the equalizer table and every clip's index survive a round trip"417 "the equalizer table and every clip's index survive a round trip"
418 );418 );
419 }419 }
@@ -444,12 +444,12 @@ fn a_version_6_project_carries_per_clip_colours() {
444 loaded.save_project(&again).expect("save");444 loaded.save_project(&again).expect("save");
445 assert_eq!(445 assert_eq!(
446 std::fs::read_to_string(&again).expect("read back"),446 std::fs::read_to_string(&again).expect("read back"),
447- "edith 16\nplayhead 0\nresolution 1280 720\nfps 30.0\nsource 0 test_av.mp4\n\447+ "edith 20\nplayhead 0\nresolution 1280 720\nfps 30.0\nsource 0 test_av.mp4\n\
448 eq 80.0:-3.0:0.707:ls\n\448 eq 80.0:-3.0:0.707:ls\n\
449 color 0.1:1.2:0.9:-0.3\n\449 color 0.1:1.2:0.9:-0.3\n\
450 color -0.25:1.0:0.0:0.5\n\450 color -0.25:1.0:0.0:0.5\n\
451- video 1 0 0 30 0 - 0 0 fit 1000\nvideo 1 30 30 60 0 - - 1 fit 1000\n\451+ video 1 0 0 30 0 - 0 0 fit 1000 0 0 0 -\nvideo 1 30 30 60 0 - - 1 fit 1000 0 0 0 -\n\
452- audio 1 0 0 30 0 - - 0 fit 1000\naudio 1 30 30 60 0 - - - fit 1000\n",452+ audio 1 0 0 30 0 - - 0 fit 1000 0 0 0 -\naudio 1 30 30 60 0 - - - fit 1000 0 0 0 -\n",
453 "the colour table and every clip's index survive a round trip"453 "the colour table and every clip's index survive a round trip"
454 );454 );
455 // A dialect that could not say either one means the defaults, and those are455 // A dialect that could not say either one means the defaults, and those are
@@ -494,9 +494,9 @@ fn a_version_7_project_carries_a_resolution_and_fit_policies() {
494 loaded.save_project(&again).expect("save");494 loaded.save_project(&again).expect("save");
495 assert_eq!(495 assert_eq!(
496 std::fs::read_to_string(&again).expect("read back"),496 std::fs::read_to_string(&again).expect("read back"),
497- "edith 16\nplayhead 0\nresolution 960 720\nfps 30.0\nsource 0 test_av.mp4\n\497+ "edith 20\nplayhead 0\nresolution 960 720\nfps 30.0\nsource 0 test_av.mp4\n\
498- video 1 0 0 30 0 - - - fill 1000\nvideo 1 30 30 60 0 - - - center 1000\n\498+ video 1 0 0 30 0 - - - fill 1000 0 0 0 -\nvideo 1 30 30 60 0 - - - center 1000 0 0 0 -\n\
499- audio 1 0 0 60 0 - - - fit 1000\n",499+ audio 1 0 0 60 0 - - - fit 1000 0 0 0 -\n",
500 "a v7 project is written back as the v8 it now is: the same clips, each \500 "a v7 project is written back as the v8 it now is: the same clips, each \
501 saying it plays at real time, which is what it always played at"501 saying it plays at real time, which is what it always played at"
502 );502 );
@@ -753,7 +753,7 @@ fn malformed_files_are_numbered_errors_and_never_panics() {
753 for (text, want) in [753 for (text, want) in [
754 (754 (
755 "edith 17\nsource 0 test_av.mp4\nvideo 1 0 0 30 0 - - - fit\n",755 "edith 17\nsource 0 test_av.mp4\nvideo 1 0 0 30 0 - - - fit\n",
756- "line 1",756+ "line 3",
757 ),757 ),
758 // An eq index the table does not hold, and a band shape there is none.758 // An eq index the table does not hold, and a band shape there is none.
759 (759 (