Skip to content

Commit

Permalink
Gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansr committed Jul 9, 2019
1 parent 7be1604 commit ffa65c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sys/windows/syscall_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func TestByteSliceToStringSliceEmptyBytes(t *testing.T) {

func mkUtf16bytes(s string) []byte {
n := len(s)
b := make([]byte, n * 2)
b := make([]byte, n*2)
for idx, val := range s {
*(*uint16)(unsafe.Pointer(&b[idx*2])) = uint16(val)
}
Expand All @@ -309,7 +309,6 @@ func TestByteSliceToStringSliceNotTerminated(t *testing.T) {
assert.Equal(t, "World", cmd[1])
}


func TestByteSliceToStringSliceNotOddSize(t *testing.T) {
b := mkUtf16bytes("BAD")[:5]
cmd, err := ByteSliceToStringSlice(b)
Expand Down

0 comments on commit ffa65c9

Please sign in to comment.