github.com/bingoohuang/gg@v0.0.0-20240325092523-45da7dee9335/pkg/bytex/bytex_test.go (about)

     1  package bytex
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestToInt64(t *testing.T) {
    10  	b := FromUint64(100)
    11  	assert.Equal(t, uint64(100), ToUint64(b))
    12  }