MCPcopy Create free account
hub / github.com/Soft/iter / TestFlatten

Function TestFlatten

iterator_test.go:161–169  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

159}
160
161func TestFlatten(t *testing.T) {
162 it := Slice(
163 []Iterator[int]{
164 Slice([]int{1, 2}),
165 Slice([]int{3, 4}),
166 },
167 )
168 equals(t, ToSlice(Flatten(it)), []int{1, 2, 3, 4})
169}
170
171func TestRange(t *testing.T) {
172 equals(t, ToSlice(Range(0, 5, 1)), []int{0, 1, 2, 3, 4})

Callers

nothing calls this directly

Calls 4

SliceFunction · 0.85
equalsFunction · 0.85
ToSliceFunction · 0.85
FlattenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…