diff --git a/array_test.go b/array_test.go index 9472c9e..221e7c8 100644 --- a/array_test.go +++ b/array_test.go @@ -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)) }