forge
Explore
Log in

Don't you dare go Hollow

Stale dialect asserts learn the current magic

Browse files at this commit

6b8d7dd46ab3464093fdaa2bd7795c447d717e70Ahmet Kaan GümüşParent: aace3b7
  • fix
    • stale dialect asserts learn the current magic
Show full message
🐛 fix(engine): stale dialect asserts learn the current magic

Six integration-test asserts still pinned "edith 16" on freshly saved
projects; the suite had not compiled since that dialect.
crates/engine/tests/export.rsmodified+1 -1
@@ -1026,7 +1026,7 @@ fn a_proxy_is_picture_only_every_frame_a_starting_point_and_cached() {
10261026 session.set_proxies(true);
10271027 session.save_project(&project).expect("save");
10281028 let text = std::fs::read_to_string(&project).expect("read the project back");
1029- assert!(text.starts_with("edith 16\n"), "{text}");
1029+ assert!(text.starts_with("edith 20\n"), "{text}");
10301030 assert!(text.contains("\nproxy on\n"), "{text}");
10311031 let reopened = PlaybackSession::open_project(&project).expect("load");
10321032 assert!(reopened.proxies(), "the switch came back on");
crates/engine/tests/saveload.rsmodified+1 -1
@@ -291,7 +291,7 @@ fn a_version_1_project_loads_fully_grouped_and_saves_as_version_7() {
291291 let v2 = dir.join("new.edith");
292292 loaded.save_project(&v2).expect("save");
293293 let text = std::fs::read_to_string(&v2).expect("read back");
294- assert!(text.starts_with("edith 16\n"), "{text}");
294+ assert!(text.starts_with("edith 20\n"), "{text}");
295295 assert!(
296296 text.contains("\nresolution 1280 720\n"),
297297 "a project with no resolution of its own is saved at source 0's: {text}"
crates/engine/tests/silence.rsmodified+1 -1
@@ -396,7 +396,7 @@ fn scanning_a_clip_and_cutting_what_it_finds() {
396396 .expect("save");
397397 let text = std::fs::read_to_string(&file).expect("read it back");
398398 assert!(
399- text.starts_with("edith 16"),
399+ text.starts_with("edith 20"),
400400 "{:?}",
401401 &text[..16.min(text.len())]
402402 );
crates/engine/tests/subtitles.rsmodified+3 -3
@@ -260,7 +260,7 @@ fn a_project_keeps_its_subtitles_across_a_save() {
260260 let project = dir.join("cut.edith");
261261 session.save_project(&project).expect("save");
262262 let text = std::fs::read_to_string(&project).expect("read the project back");
263- assert!(text.starts_with("edith 16\n"), "{text}");
263+ assert!(text.starts_with("edith 20\n"), "{text}");
264264 assert!(
265265 text.contains("\nsubtitle - test_subs.srt\n"),
266266 "the reference is written relative, and no cue is: {text}"
@@ -1251,7 +1251,7 @@ fn subtitle_lanes_and_their_captions_survive_a_save() {
12511251 let project = dir.join("cut.edith");
12521252 session.save_project(&project).expect("save");
12531253 let text = std::fs::read_to_string(&project).expect("read the project back");
1254- assert!(text.starts_with("edith 16\n"), "{text}");
1254+ assert!(text.starts_with("edith 20\n"), "{text}");
12551255 assert!(
12561256 text.contains("\nsub 1 10 45 0 500000 1500000\n"),
12571257 "the placement is one line: where it sits, how long, whose words, and \
@@ -1317,7 +1317,7 @@ fn a_version_14_project_keeps_its_palette_and_places_nothing() {
13171317 let now = dir.join("new.edith");
13181318 loaded.save_project(&now).expect("save");
13191319 let text = std::fs::read_to_string(&now).expect("read back");
1320- assert!(text.starts_with("edith 16\n"), "{text}");
1320+ assert!(text.starts_with("edith 20\n"), "{text}");
13211321 assert!(
13221322 text.contains("\nsubtitle - test_subs.srt\n"),
13231323 "the row survives the migration: {text}"