mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 00:22:41 +08:00
uppercase hex
This commit is contained in:
18
bytesconv/bytes_result_test.go
Normal file
18
bytesconv/bytes_result_test.go
Normal file
@ -0,0 +1,18 @@
|
||||
package bytesconv_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/charlienet/go-mixed/bytesconv"
|
||||
"github.com/charlienet/go-mixed/rand"
|
||||
)
|
||||
|
||||
func TestHexUppercase(t *testing.T) {
|
||||
b, _ := rand.RandBytes(12)
|
||||
|
||||
l := bytesconv.BytesResult(b).Hex()
|
||||
t.Log(l)
|
||||
|
||||
u := bytesconv.BytesResult(b).UppercaseHex()
|
||||
t.Log(u)
|
||||
}
|
Reference in New Issue
Block a user