Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust
694 B
Raw Blame
//! Profile-root spelling changes must propagate through settings snapshots.

use super::*;

#[test]
fn executor_profile_root_case_changes_update_snapshot() {
    for (first, second) in [
        ("file:///C:/Work/Project", "file:///C:/work/project"),
        ("file://server/share/Project", "file://server/share/project"),
    ] {
        let snapshot = |root| {
            PermissionProfileSnapshot::active_with_profile_workspace_roots(
                PermissionProfile::read_only(),
                ActivePermissionProfile::new("executor"),
                vec![PathUri::parse(root).unwrap().into()],
            )
        };
        assert_ne!(snapshot(first), snapshot(second));
    }
}