From 38eb0412aa99fac166cf7675130b75b072b2dd41 Mon Sep 17 00:00:00 2001 From: xing Date: Mon, 23 Jan 2023 23:51:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helper/slice/set_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/helper/slice/set_test.go b/helper/slice/set_test.go index a0ad576..3f2b151 100644 --- a/helper/slice/set_test.go +++ b/helper/slice/set_test.go @@ -169,6 +169,15 @@ func TestUnique(t *testing.T) { }, wantR: number.Range(1, 15, 1), }, + { + name: "t2", + args: args[int]{ + a: [][]int{ + {1, 1, 1, 2, 2, 2, 3, 3, 4, 5}, + }, + }, + wantR: number.Range(1, 5, 1), + }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {