test(stringx): val test
This commit is contained in:
parent
70a246f84c
commit
41ef546d95
|
@ -1,7 +1,9 @@
|
|||
package stringx
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
"unsafe"
|
||||
|
||||
"gitee.com/timedb/wheatCache/pkg/structure"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
@ -89,3 +91,8 @@ func TestStringSingle_Getrange(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
require.Equal(t, "abc", k)
|
||||
}
|
||||
|
||||
func TestPointSize(t *testing.T) {
|
||||
var a *int32
|
||||
fmt.Println(unsafe.Sizeof(a))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue