Sha256: 4dae423519402f093dbb83f5e7c861eacee40793a90ee09d4787340462782af7
Contents?: true
Size: 240 Bytes
Versions: 14
Compression:
Stored size: 240 Bytes
Contents
require 'facets/enumerable/modulate.rb' require 'test/unit' class Test_Enumerable_Modulate < Test::Unit::TestCase def test_compact_collect a = [2,4,6,8] r = a.modulate(2) x = [[2,6],[4,8]] assert_equal(x, r) end end
Version data entries
14 entries across 14 versions & 1 rubygems