feat:完善项目
This commit is contained in:
31
utils/array_test.go
Normal file
31
utils/array_test.go
Normal file
@ -0,0 +1,31 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"testing"
|
||||
)
|
||||
|
||||
const (
|
||||
a = 0x00001
|
||||
b = 0x00010
|
||||
c = 0x00100
|
||||
)
|
||||
|
||||
func TestArrayFlip(t *testing.T) {
|
||||
//flip := []uint64{1, 2, 3, 4}
|
||||
//out := ArrayFlip(flip)
|
||||
//t.Logf("out:%v\n", out)
|
||||
|
||||
d := a & b & c
|
||||
t.Log(d)
|
||||
|
||||
}
|
||||
|
||||
func TestArrayStrings(t *testing.T) {
|
||||
a := []uint64{1, 2, 3, 4, 5}
|
||||
t.Log(a)
|
||||
t.Log(reflect.TypeOf(a).String())
|
||||
b := ArrayStrings(a)
|
||||
t.Log(b)
|
||||
t.Log(reflect.TypeOf(b).String())
|
||||
}
|
Reference in New Issue
Block a user