add test
This commit is contained in:
parent
abced6d49d
commit
e11c833562
@ -9,6 +9,7 @@ package wrapper
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@ -18,4 +19,9 @@ func TestArray(t *testing.T) {
|
||||
fmt.Println(Array(val).ItemIsInterface())
|
||||
valInt := []int{1, 2, 3, 1, 4, 5, 6, 7, 7, 6, 9}
|
||||
fmt.Println(Array(valInt).Unique())
|
||||
a := map[string]interface{}{"name": "zhang"}
|
||||
b := a
|
||||
c := map[string]interface{}{"name": "de"}
|
||||
fmt.Println(reflect.DeepEqual(b, c))
|
||||
fmt.Println(reflect.DeepEqual(a, b))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user