Skip to content

Commit ffaead6

Browse files
committed
Add missing slash to file url test
1 parent 4da440d commit ffaead6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gix-url/tests/parse/file.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ fn no_username_expansion_for_file_paths_without_protocol() -> crate::Result {
3737
assert_eq!(url, "~/path/to/git");
3838
Ok(())
3939
}
40+
4041
#[test]
4142
fn no_username_expansion_for_file_paths_with_protocol() -> crate::Result {
4243
assert_url_roundtrip(
43-
"file://~username/path/to/git",
44-
url(Scheme::File, None, None, None, b"~username/path/to/git"),
44+
"file:///~username/path/to/git",
45+
url(Scheme::File, None, None, None, b"/~username/path/to/git"),
4546
)
4647
}
4748

0 commit comments

Comments
 (0)