Skip to content

Commit 3054e0e

Browse files
committed
Added test for canonical tmp path on windows
1 parent 5a57733 commit 3054e0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

paths_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,10 @@ func TestCanonicalize(t *testing.T) {
341341

342342
r := New("c:\\").Canonical()
343343
require.Equal(t, "C:\\", r.String())
344+
345+
tmp, err := MkTempDir("", "pref")
346+
require.NoError(t, err)
347+
require.Equal(t, tmp.String(), tmp.Canonical().String())
344348
}
345349
}
346350

0 commit comments

Comments
 (0)