Skip to content

Commit bc69599

Browse files
committed
Fixed shortened-path tests
1 parent 38ca67e commit bc69599

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

paths_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ func TestEquivalentPaths(t *testing.T) {
340340
if runtime.GOOS == "windows" {
341341
q := New("testdata", "fileset", "anotherFile")
342342
r := New(shorten(t, q.String()))
343+
t.Log("SHORTENED PATH:", r.String())
343344
require.True(t, q.EquivalentTo(r))
344345
require.True(t, r.EquivalentTo(q))
345346
}
@@ -356,7 +357,9 @@ func TestCanonicalize(t *testing.T) {
356357
require.Equal(t, wd.Join("testdata", "fileset", "nonexistentFile").String(), p.String())
357358

358359
if runtime.GOOS == "windows" {
359-
q := New("testdata", "fileset", "ANOTHE~1").Canonical()
360+
qshort := New(shorten(t, New("testdata", "fileset", "anotherFile").String()))
361+
t.Log("SHORTENED PATH:", qshort.String())
362+
q := qshort.Canonical()
360363
require.Equal(t, wd.Join("testdata", "fileset", "anotherFile").String(), q.String())
361364

362365
r := New("c:\\").Canonical()

0 commit comments

Comments
 (0)