Skip to content

Commit db60789

Browse files
committed
Added test for canonical tmp path on windows
1 parent 0430fee commit db60789

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

paths_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,10 @@ func TestCanonicalize(t *testing.T) {
337337

338338
r := New("c:\\").Canonical()
339339
require.Equal(t, "C:\\", r.String())
340+
341+
tmp, err := MkTempDir("", "pref")
342+
require.NoError(t, err)
343+
require.Equal(t, tmp.String(), tmp.Canonical().String())
340344
}
341345
}
342346

0 commit comments

Comments
 (0)