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 })