mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-21 20:38:48 +00:00
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:
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user