Files
ArmedPolice/utils/array_test.go

32 lines
434 B
Go
Raw Normal View History

2021-11-02 09:43:19 +08:00
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())
}