From a83bf547a3550acf3f54ed093ea816774b35e8bb Mon Sep 17 00:00:00 2001 From: hsldymq Date: Thu, 4 Apr 2024 12:27:06 +0800 Subject: [PATCH] update test --- funcs_aggregation_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/funcs_aggregation_test.go b/funcs_aggregation_test.go index 969cc25..01c752a 100644 --- a/funcs_aggregation_test.go +++ b/funcs_aggregation_test.go @@ -1,12 +1,13 @@ package handy import ( + "github.com/hsldymq/goiter" "slices" "testing" ) func TestReduce(t *testing.T) { - list := NewList(1, 2, 3, 4, 5) + list := NewIterableFromSeq(goiter.SliceElem([]int{1, 2, 3, 4, 5})) actual := Reduce(list, 0, func(acc, each int) int { return acc + each })