Fix
This commit is contained in:
parent
754c23a560
commit
f513f744b6
1 changed files with 1 additions and 1 deletions
|
@ -13,5 +13,5 @@ func TestStringFromBytes(t *testing.T) {
|
||||||
s := illegal.StringFromBytes(b)
|
s := illegal.StringFromBytes(b)
|
||||||
|
|
||||||
assert.Equal(t, "abc", s)
|
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)))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue