scope batch rename conflicts by parent directory

This commit is contained in:
ngfchl
2026-07-18 19:28:54 +08:00
parent 189334b6fa
commit 5a23f438f1
4 changed files with 101 additions and 5 deletions
+16
View File
@@ -58,4 +58,20 @@ void main() {
]);
expect(previews.every((item) => item.applicable), isTrue);
});
test(
'uses parent IDs for collision scope when display paths are incomplete',
() {
final previews = buildRenamePreviews(
[
_file('1', 'Episode 01.mkv').copyWith(parentID: 'folder-a'),
_file('2', 'Episode 02.mkv').copyWith(parentID: 'folder-b'),
],
[collapseNames],
preserveExtension: true,
);
expect(previews.every((item) => item.applicable), isTrue);
},
);
}