Skip to content

Commit e136a1a

Browse files
committed
*shakes fist at windows*
1 parent ee12311 commit e136a1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/dotfiles_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"path/filepath"
88
"runtime"
99
"testing"
10+
"unicode/utf16"
1011

1112
"github.com/stretchr/testify/require"
1213

@@ -309,7 +310,7 @@ func TestDotfilesInstallScriptWindows(t *testing.T) {
309310

310311
b, err := os.ReadFile(filepath.Join(string(root), "greeting.txt"))
311312
require.NoError(t, err)
312-
require.Equal(t, string(b), "hello, computer!\n")
313+
require.Equal(t, string(b), utf16.Encode([]rune("hello, computer!\n")))
313314
})
314315
}
315316

0 commit comments

Comments
 (0)