mirror of https://github.com/ceph/go-ceph
14 lines
179 B
Go
14 lines
179 B
Go
|
package cutil
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func TestVoidPtr(t *testing.T) {
|
||
|
i := uintptr(42)
|
||
|
j := uintptr(VoidPtr(i))
|
||
|
assert.Equal(t, i, j)
|
||
|
}
|