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 <[email protected]>
This commit is contained in:
FredApps
2026-11-20 16:16:33 -05:00
committed by GitHub
co-authored by FredApps
parent df18640982
commit 4f23ee1c1c
2 changed files with 4 additions and 2 deletions
+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]