mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-12-04 13:03:19 -05:00
test: compare the canonical Windows batch output path (#9278)
Co-authored-by: FredApps <[email protected]>
This commit is contained in:
1 parent
c08c21849d
commit
7ea018b4f6
1 file changed
+4
-2
@@ -423,8 +423,10 @@ mod tests {
|
||||
let Some(log) = result.get("log").and_then(|value| value.as_str()) else {
|
||||
panic!("batch result should carry a plain-text per-file log: {result}");
|
||||
};
|
||||
let out_escaped = out_str.replace('\\', "\\\\");
|
||||
assert!(log.contains(&out_escaped), "log should name the published output: {log}");
|
||||
let published = out_dir.path().join("good.pdf").canonicalize().expect("published output");
|
||||
let published = published.to_str().expect("published path is UTF-8");
|
||||
let out_escaped = published.replace('\\', "\\\\").replace('\r', "\\r").replace('\n', "\\n");
|
||||
assert!(log.contains(&format!(": ok: output: {out_escaped} steps:")), "log should name the published output: {log}");
|
||||
assert!(log.contains("optimize"), "log should report the successful step result: {log}");
|
||||
assert!(log.contains("ok"), "log should mark the successful file: {log}");
|
||||
let lower = log.to_ascii_lowercase();
|
||||
|
||||
Reference in new issue
Block a user