From abced6d49d19836f4e566a6e085060ca804a9fb3 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:01:31 +0800 Subject: [PATCH] add test --- array_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/array_test.go b/array_test.go index baddf77..9472c9e 100644 --- a/array_test.go +++ b/array_test.go @@ -16,4 +16,6 @@ func TestArray(t *testing.T) { val := []interface{}{1, 2, 3} fmt.Println(Array(val).IsValid()) fmt.Println(Array(val).ItemIsInterface()) + valInt := []int{1, 2, 3, 1, 4, 5, 6, 7, 7, 6, 9} + fmt.Println(Array(valInt).Unique()) }