This commit is contained in:
Fedor Korotkiy 2021-04-14 18:43:53 +03:00
parent 754c23a560
commit f513f744b6

View file

@ -13,5 +13,5 @@ func TestStringFromBytes(t *testing.T) {
s := illegal.StringFromBytes(b)
assert.Equal(t, "abc", s)
assert.Equal(t, **(**uintptr)(unsafe.Pointer(&b)), **(**uintptr)(unsafe.Pointer(&s)))
assert.Equal(t, *(*uintptr)(unsafe.Pointer(&b)), *(*uintptr)(unsafe.Pointer(&s)))
}