History

Add missing slash to file url test

Niklas Wimmer committed 3 years ago

Commit ffaead61 parent 4da440d1 file · +3 −2Browse files

Unified · Split

gix-url/tests/parse/file.rs+3−2
@@ -37,11 +37,12 @@ fn no_username_expansion_for_file_paths_without_protocol() -> crate::Result { · 36 unmodified lines
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