Skip to content

Commit 41c9fd0

Browse files
committed
🐛 fix test
1 parent 70a73b4 commit 41c9fd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/collection/search_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ func TestFilterReject(t *testing.T) {
186186
assert.ElementsMatch(t, []int{1, 3, 5}, Reject(nums, func(n int) bool {
187187
return n%2 == 0
188188
}))
189-
assert.ElementsMatch(t, []int{1, 3, 5}, RejectSequence(slices.Values(nums), func(n int) bool {
189+
assert.ElementsMatch(t, []int{1, 3, 5}, slices.Collect[int](RejectSequence[int](slices.Values(nums), func(n int) bool {
190190
return n%2 == 0
191-
}))
191+
})))
192192
assert.ElementsMatch(t, []int{4, 5}, Filter(nums, func(n int) bool {
193193
return n > 3
194194
}))

0 commit comments

Comments
 (0)