Skip to content

Commit a83bf54

Browse files
committed
update test
1 parent 772b32a commit a83bf54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

funcs_aggregation_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package handy
22

33
import (
4+
"github.com/hsldymq/goiter"
45
"slices"
56
"testing"
67
)
78

89
func TestReduce(t *testing.T) {
9-
list := NewList(1, 2, 3, 4, 5)
10+
list := NewIterableFromSeq(goiter.SliceElem([]int{1, 2, 3, 4, 5}))
1011
actual := Reduce(list, 0, func(acc, each int) int {
1112
return acc + each
1213
})

0 commit comments

Comments
 (0)