Skip to content

Conversation

@ahmedhesham6
Copy link
Collaborator

Summary

  • Fix 4 failing tests on Windows caused by hardcoded forward slash path separators
  • Replace path.to_string_lossy().contains("a/b") with idiomatic path.ends_with(Path::new("a").join("b"))
  • Uses Rust's native cross-platform path handling instead of manual separator checks

Tests Fixed

  • test_default_skills_dir
  • test_resolve_skills_dir_global_scope
  • test_resolve_skills_dir_global_scope_default_agent
  • test_resolve_skills_dir_global_scope_no_agent

Replace string-based path assertions with idiomatic Rust Path::ends_with()
and Path::join() to fix test failures on Windows where path separators
differ from Unix.
kajogo777
kajogo777 previously approved these changes Jan 12, 2026
@ahmedhesham6 ahmedhesham6 merged commit 5e03830 into main Jan 13, 2026
1 check passed
@ahmedhesham6 ahmedhesham6 deleted the fix/cross-platform-path-tests branch January 13, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants