Sha256: 8ee9ddf380a63d37d2a09528d6a83a2e1390863ba51bd9c89a0874567e1a60c6
Contents?: true
Size: 290 Bytes
Versions: 4
Compression:
Stored size: 290 Bytes
Contents
covers 'facets/enumerable/filter' testcase Enumerable do unit :filter do x = (1..10000) x = x.filter{ |out,i| out << i if i % 2 == 0 } # like select x = x.filter{ |out,i| out << i + 100 } # like map x = x.take(3) x.assert == [102, 104, 106] end end
Version data entries
4 entries across 4 versions & 1 rubygems