Stale dialect asserts learn the current magic
Browse files at this commit6b8d7dd46ab3464093fdaa2bd7795c447d717e70Parent: aace3b7- fix
- stale dialect asserts learn the current magic
4 changed files +6 -6
- crates/engine/tests/export.rs +1 -1
- crates/engine/tests/saveload.rs +1 -1
- crates/engine/tests/silence.rs +1 -1
- crates/engine/tests/subtitles.rs +3 -3
crates/engine/tests/export.rsmodified+1 -1
| @@ -1026,7 +1026,7 @@ fn a_proxy_is_picture_only_every_frame_a_starting_point_and_cached() { | |||
| 1026 | session.set_proxies(true); | 1026 | session.set_proxies(true); |
| 1027 | session.save_project(&project).expect("save"); | 1027 | session.save_project(&project).expect("save"); |
| 1028 | let text = std::fs::read_to_string(&project).expect("read the project back"); | 1028 | 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}"); |
| 1030 | assert!(text.contains("\nproxy on\n"), "{text}"); | 1030 | assert!(text.contains("\nproxy on\n"), "{text}"); |
| 1031 | let reopened = PlaybackSession::open_project(&project).expect("load"); | 1031 | let reopened = PlaybackSession::open_project(&project).expect("load"); |
| 1032 | assert!(reopened.proxies(), "the switch came back on"); | 1032 | 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() { | |||
| 291 | let v2 = dir.join("new.edith"); | 291 | let v2 = dir.join("new.edith"); |
| 292 | loaded.save_project(&v2).expect("save"); | 292 | loaded.save_project(&v2).expect("save"); |
| 293 | let text = std::fs::read_to_string(&v2).expect("read back"); | 293 | 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}"); |
| 295 | assert!( | 295 | assert!( |
| 296 | text.contains("\nresolution 1280 720\n"), | 296 | text.contains("\nresolution 1280 720\n"), |
| 297 | "a project with no resolution of its own is saved at source 0's: {text}" | 297 | "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() { | |||
| 396 | .expect("save"); | 396 | .expect("save"); |
| 397 | let text = std::fs::read_to_string(&file).expect("read it back"); | 397 | let text = std::fs::read_to_string(&file).expect("read it back"); |
| 398 | assert!( | 398 | assert!( |
| 399 | - text.starts_with("edith 16"), | 399 | + text.starts_with("edith 20"), |
| 400 | "{:?}", | 400 | "{:?}", |
| 401 | &text[..16.min(text.len())] | 401 | &text[..16.min(text.len())] |
| 402 | ); | 402 | ); |
crates/engine/tests/subtitles.rsmodified+3 -3
| @@ -260,7 +260,7 @@ fn a_project_keeps_its_subtitles_across_a_save() { | |||
| 260 | let project = dir.join("cut.edith"); | 260 | let project = dir.join("cut.edith"); |
| 261 | session.save_project(&project).expect("save"); | 261 | session.save_project(&project).expect("save"); |
| 262 | let text = std::fs::read_to_string(&project).expect("read the project back"); | 262 | 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}"); |
| 264 | assert!( | 264 | assert!( |
| 265 | text.contains("\nsubtitle - test_subs.srt\n"), | 265 | text.contains("\nsubtitle - test_subs.srt\n"), |
| 266 | "the reference is written relative, and no cue is: {text}" | 266 | "the reference is written relative, and no cue is: {text}" |
| @@ -1251,7 +1251,7 @@ fn subtitle_lanes_and_their_captions_survive_a_save() { | |||
| 1251 | let project = dir.join("cut.edith"); | 1251 | let project = dir.join("cut.edith"); |
| 1252 | session.save_project(&project).expect("save"); | 1252 | session.save_project(&project).expect("save"); |
| 1253 | let text = std::fs::read_to_string(&project).expect("read the project back"); | 1253 | 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}"); |
| 1255 | assert!( | 1255 | assert!( |
| 1256 | text.contains("\nsub 1 10 45 0 500000 1500000\n"), | 1256 | text.contains("\nsub 1 10 45 0 500000 1500000\n"), |
| 1257 | "the placement is one line: where it sits, how long, whose words, and \ | 1257 | "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() { | |||
| 1317 | let now = dir.join("new.edith"); | 1317 | let now = dir.join("new.edith"); |
| 1318 | loaded.save_project(&now).expect("save"); | 1318 | loaded.save_project(&now).expect("save"); |
| 1319 | let text = std::fs::read_to_string(&now).expect("read back"); | 1319 | 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}"); |
| 1321 | assert!( | 1321 | assert!( |
| 1322 | text.contains("\nsubtitle - test_subs.srt\n"), | 1322 | text.contains("\nsubtitle - test_subs.srt\n"), |
| 1323 | "the row survives the migration: {text}" | 1323 | "the row survives the migration: {text}" |