We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 243bd48 commit 1e8a4f8Copy full SHA for 1e8a4f8
crates/pet/src/find.rs
@@ -644,9 +644,12 @@ mod tests {
644
);
645
646
// Extra verification: fs::canonicalize WOULD resolve it (showing the difference)
647
+ // Note: We canonicalize both paths for comparison because on macOS /var is a
648
+ // symlink to /private/var, so canonicalize resolves that too.
649
let resolved = fs::canonicalize(&discovered[0]).expect("Should resolve");
650
+ let canonical_target = fs::canonicalize(&deep_target).expect("Should resolve target");
651
assert_eq!(
- resolved, deep_target,
652
+ resolved, canonical_target,
653
"canonicalize() would resolve to target, but path() does not"
654
655
}
0 commit comments