mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-25 17:22:27 +08:00
test(detect): normalize Windows path assertion
This commit is contained in:
1 parent
2280da11d0
commit
12b9613139
1 file changed
+5
-1
@@ -6468,7 +6468,11 @@ mod tests {
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
assert!(output.status.success(), "where.exe failed: {stderr}");
|
||||
assert_eq!(matches, vec![expected]);
|
||||
assert_eq!(matches.len(), 1);
|
||||
assert_eq!(
|
||||
std::fs::canonicalize(&matches[0]).expect("where.exe match should canonicalize"),
|
||||
std::fs::canonicalize(&expected).expect("expected PATH shim should canonicalize")
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user