Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
hsldymq committed Apr 4, 2024
1 parent 772b32a commit a83bf54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion funcs_aggregation_test.go
Original file line number Diff line number Diff line change
@@ -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
})
Expand Down

0 comments on commit a83bf54

Please sign in to comment.