mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-17 08:36:25 +03:00
context tests: the verbatim-prefix strip spells the prefix once
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vau2X53xGTjjTCXWMVBoNY
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
c5adf55bc8
commit
819817b705
@@ -694,10 +694,10 @@ mod tests_660 {
|
||||
std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).unwrap().as_nanos()
|
||||
));
|
||||
std::fs::create_dir_all(&base).unwrap();
|
||||
// Like Node's `realpathSync`: no `\\\\?\\` verbatim prefix on Windows,
|
||||
// Like Node's `realpathSync`: no `\\?\` verbatim prefix on Windows,
|
||||
// so paths the verb joins with `/` resolve under this root.
|
||||
let real = std::fs::canonicalize(&base).unwrap().to_string_lossy().into_owned();
|
||||
real.strip_prefix(r"\\\\?\\").map(str::to_string).unwrap_or(real)
|
||||
real.strip_prefix(r"\\?\").map(str::to_string).unwrap_or(real)
|
||||
}
|
||||
|
||||
fn run_capture(cwd: &str, args: &[&str]) -> (i32, String, String) {
|
||||
|
||||
Reference in New Issue
Block a user