test(stringx): val test

This commit is contained in:
bandl 2021-10-22 15:35:48 +08:00
parent 70a246f84c
commit 41ef546d95
1 changed files with 7 additions and 0 deletions

View File

@ -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))
}