From e11c833562546d67c0539afa426a88b24a0c6d5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 12 Jun 2023 19:09:28 +0800 Subject: [PATCH] add test --- array_test.go | 6 ++++++ 1 file changed, 6 insertions(+) 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)) }