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
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]
41fn no_username_expansion_for_file_paths_with_protocol() -> crate::Result {42fn 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