()
| 2047 | |
| 2048 | #[test] |
| 2049 | fn normalize_path_collapses_separators() { |
| 2050 | assert_eq!(normalize_path("/usr//lib"), "/usr/lib"); |
| 2051 | assert_eq!(normalize_path("/usr/./lib"), "/usr/lib"); |
| 2052 | assert_eq!(normalize_path("/tmp/"), "/tmp"); |
| 2053 | } |
| 2054 | |
| 2055 | #[test] |
| 2056 | fn normalize_path_preserves_parent_dir() { |
nothing calls this directly
no outgoing calls
no test coverage detected