github.com/sixexorg/magnetic-ring@v0.0.0-20191119090307-31705a21e419/common/hex_test.go (about) 1 package common_test 2 3 import ( 4 "testing" 5 6 "github.com/sixexorg/magnetic-ring/common" 7 ) 8 9 func TestUint16ToBytes(t *testing.T) { 10 t.Log(common.Uint16ToBytes(554)) 11 } 12 13 func TestBytesToUint16(t *testing.T) { 14 15 bytearr := []byte{0, 4} 16 t.Log(common.BytesToUint16(bytearr)) 17 }