test(rename): separate filename and full-path boundary fixtures (#7965)

* test(rename): separate filename and full-path boundary fixtures

* Preserve repository LF endings in rename test fixtures

* Preserve UTF-8 text in rename fixture repair

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
This commit is contained in:
FredAppsandFredApps authored and GitHub committed 2026-11-20 16:16:33 -05:00
1 parent df18640982
commit 4f23ee1c1c
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -355,7 +355,8 @@ mod tests {
use super::*;
fn name(typed: &str) -> Result<String, RenameError> {
new_file_name(Path::new("/docs/report.pdf"), typed)
// This helper checks the file-name component; a parent would also spend Windows' path budget.
new_file_name(Path::new("report.pdf"), typed)
}
#[test]
+2 -1
View File
@@ -6,7 +6,8 @@ use std::path::Path;
use pdfcraft_engine::{RenameError, new_file_name};
fn name(typed: &str) -> Result<String, RenameError> {
new_file_name(Path::new("/docs/report.pdf"), typed)
// Keep the component-length boundary separate from the platform's full-path limit.
new_file_name(Path::new("report.pdf"), typed)
}
#[test]