Skip to content

Commit 2646b1d

Browse files
committed
fix unescaped back-slash target
1 parent 611d2a4 commit 2646b1d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

convert_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,21 @@ func TestFromIP4(t *testing.T) {
6666
}
6767

6868
func TestFromUnix(t *testing.T) {
69-
path := "/c:/foo/bar"
69+
path := "/C:/foo/bar"
7070
if runtime.GOOS == "windows" {
71-
path = "c:\foo\bar"
71+
path = `C:\foo\bar`
7272
}
73-
testConvert(t, "/unix/c:/foo/bar", func() (ma.Multiaddr, error) {
73+
testConvert(t, "/unix/C:/foo/bar", func() (ma.Multiaddr, error) {
7474
return FromNetAddr(&net.UnixAddr{Name: path, Net: "unix"})
7575
})
7676
}
7777

7878
func TestToUnix(t *testing.T) {
79-
path := "/c:/foo/bar"
79+
path := "/C:/foo/bar"
8080
if runtime.GOOS == "windows" {
81-
path = "c:\foo\bar"
81+
path = `C:\foo\bar`
8282
}
83-
testToNetAddr(t, "/unix/c:/foo/bar", "unix", path)
83+
testToNetAddr(t, "/unix/C:/foo/bar", "unix", path)
8484
}
8585

8686
func TestFromIP6(t *testing.T) {

0 commit comments

Comments
 (0)