Lightweight coding agent that runs in your terminal
Rust
//! Tests for local-link parsing and root-preserving separator normalization.
use super::trim_trailing_local_path_separator;
use pretty_assertions::assert_eq;
#[test]
fn trailing_separator_trimming_preserves_local_roots() {
let paths = ["/", "//", "C:/", "dir/", "//server/share/", "C:/dir/"];
assert_eq!(
paths.map(trim_trailing_local_path_separator),
["/", "//", "C:/", "dir", "//server/share", "C:/dir"]
);
}