Skip to content

Commit 05933c7

Browse files
committed
fix
1 parent 7f5e4c2 commit 05933c7

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
//go:build windows
2-
31
package path_test
42

53
import (
4+
"runtime"
65
"testing"
76

87
"github.com/stretchr/testify/assert"
@@ -13,5 +12,9 @@ import (
1312
func Test_Normalize(t *testing.T) {
1413
t.Parallel()
1514

16-
assert.Equal(t, "foo\\bar", Normalize("foo/bar"))
15+
if runtime.GOOS == "windows" {
16+
assert.Equal(t, "foo\\bar", Normalize("foo/bar"))
17+
} else {
18+
assert.Equal(t, "foo/bar", Normalize("foo/bar"))
19+
}
1720
}

pkg/testcoverage/path/path_test_non_windows.go

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)