extract the d3d descriptors and cover the sweep and guard paths
This commit is contained in:
@@ -1089,6 +1089,19 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
/// Windows keeps whatever case a name was created with, so the temp sweep
|
||||
/// matches extensions case-insensitively. It used to compare with
|
||||
/// ends_with(".mp4"), which silently missed an upper-case recording.
|
||||
#[test]
|
||||
fn extension_match_ignores_case() {
|
||||
assert!(has_ext("segment-001.mp4", "mp4"));
|
||||
assert!(has_ext("SEGMENT-001.MP4", "mp4"));
|
||||
assert!(has_ext("Segment-001.Mp4", "mp4"));
|
||||
assert!(!has_ext("segment-001.mkv", "mp4"));
|
||||
assert!(!has_ext("segment-001", "mp4"));
|
||||
assert!(!has_ext("notsegment.mp4.bak", "mp4"));
|
||||
}
|
||||
|
||||
/// The pcm head-padding step writes a sibling `*.pcm.padtmp` next to the
|
||||
/// concatenated audio. It used to fall outside every sweep pattern, so a
|
||||
/// crash mid-pad left a file the size of the whole audio track in temp/.
|
||||
|
||||
Reference in New Issue
Block a user