Skip to content

Commit 6c20f1a

Browse files
committed
test(desktop): separator-agnostic .kim venv-candidate assertion for Windows (#59)
1 parent 30e3a20 commit 6c20f1a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎desktop/src-tauri/src/subprocess.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,8 @@ mod tests {
14951495
!s.contains(".kim_root"),
14961496
"dead ~/.kim_root venv candidate must be gone: {s}"
14971497
);
1498-
assert!(s.contains("/.kim/"), "expected a ~/.kim venv candidate: {s}");
1498+
// Component check, not substring: Windows renders these with `\`.
1499+
assert!(c.components().any(|p| p.as_os_str() == ".kim"), "expected ~/.kim candidate: {s}");
14991500
}
15001501
assert_eq!(cands.len(), 2);
15011502
}

0 commit comments

Comments
 (0)