Skip to content

Commit

Permalink
#67 Fix FlatMap test
Browse files Browse the repository at this point in the history
  • Loading branch information
meian committed Jan 30, 2022
1 parent a4127f7 commit e99fdaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ func TestFlatMap(t *testing.T) {
}

itb := gcf.FromSlice([]int{1, 2, 3, 4})
itbs := gcf.Map(itb, func(v int) string {
return strings.Repeat("a", v)
itbs := gcf.FlatMap(itb, func(v int) []string {
return []string{strings.Repeat("a", v)}
})
testBeforeAndAfter(t, itbs)

Expand Down

0 comments on commit e99fdaf

Please sign in to comment.