Unified · Split
| @@ -37,11 +37,12 @@ fn no_username_expansion_for_file_paths_without_protocol() -> crate::Result { · 36 unmodified lines | |||
| 37 | assert_eq!(url, "~/path/to/git"); | 37 | assert_eq!(url, "~/path/to/git"); |
| 38 | Ok(()) | 38 | Ok(()) |
| 39 | } | 39 | } |
| 40 | |||
| 40 | #[test] | 41 | #[test] |
| 41 | fn no_username_expansion_for_file_paths_with_protocol() -> crate::Result { | 42 | fn no_username_expansion_for_file_paths_with_protocol() -> crate::Result { |
| 42 | assert_url_roundtrip( | 43 | assert_url_roundtrip( |
| 43 | "file://~username/path/to/git", | 44 | "file:///~username/path/to/git", |
| 44 | url(Scheme::File, None, None, None, b"~username/path/to/git"), | 45 | url(Scheme::File, None, None, None, b"/~username/path/to/git"), |
| 45 | ) | 46 | ) |
| 46 | } | 47 | } |
| 47 | 48 | ||