Skip to content

Commit ab8ed8b

Browse files
Jacalzandydotxyz
authored andcommitted
Fix too many slashes in Windows paths
1 parent cb111c9 commit ab8ed8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

storage/repository/uri_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ func TestURIName(t *testing.T) {
5353
assert.Equal(t, ".txt", uri.Name())
5454

5555
if runtime.GOOS == "windows" {
56-
uri = NewFileURI("C://somewhere/file.txt")
56+
uri = NewFileURI("C:/somewhere/file.txt")
5757
assert.Equal(t, "file.txt", uri.Name())
5858

59-
uri = NewFileURI("C://somewhere")
59+
uri = NewFileURI("C:/somewhere")
6060
assert.Equal(t, "somewhere", uri.Name())
6161

62-
uri = NewFileURI("C://")
62+
uri = NewFileURI("C:/")
6363
assert.Equal(t, "C:", uri.Name())
6464
}
6565
}

0 commit comments

Comments
 (0)