Skip to content

Commit a31af62

Browse files
committed
Align test with real behavior
Git parses that as UNC url, but we do not yet implement UNC paths on Windows.
1 parent 3bf12a3 commit a31af62

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

gix-url/tests/parse/file.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ fn shortest_possible_relative_path() -> crate::Result {
103103
assert_eq!(parsed, ".");
104104
let parsed = assert_url("..", url_alternate(Scheme::File, None, None, None, b".."))?.to_bstring();
105105
assert_eq!(parsed, "..");
106-
#[cfg(windows)]
107-
{
108-
let parsed = assert_url("file://.\\", url(Scheme::File, None, None, None, b".\\"))?.to_bstring();
109-
assert_eq!(parsed, "file://.\\");
110-
}
111106
Ok(())
112107
}
113108

gix-url/tests/parse/invalid.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ fn empty_input() {
3333
fn file_missing_host_path_separator() {
3434
assert_matches!(parse("file://.."), Err(MissingRepositoryPath { .. }));
3535
assert_matches!(parse("file://."), Err(MissingRepositoryPath { .. }));
36-
#[cfg(not(windows))]
37-
{
38-
assert_matches!(parse("file://.\\"), Err(MissingRepositoryPath { .. }));
39-
}
36+
assert_matches!(parse("file://.\\"), Err(MissingRepositoryPath { .. }));
4037
assert_matches!(parse("file://a"), Err(MissingRepositoryPath { .. }));
4138
}
4239

0 commit comments

Comments
 (0)