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

Version Path
facets-2.8.4 test/core/enumerable/test_modulate.rb
facets-2.8.3 test/core/enumerable/test_modulate.rb
facets-2.8.2 test/core/enumerable/test_modulate.rb
facets-2.8.1 test/core/enumerable/test_modulate.rb
facets-2.8.0 test/core/enumerable/test_modulate.rb
facets-2.7.0 test/core/enumerable/test_modulate.rb
facets-2.6.0 test/core/enumerable/test_modulate.rb
facets-2.4.4 test/core/enumerable/test_modulate.rb
facets-2.4.3 test/core/enumerable/test_modulate.rb
facets-2.4.2 test/core/enumerable/test_modulate.rb
facets-2.4.5 test/core/enumerable/test_modulate.rb
facets-2.5.0 test/core/enumerable/test_modulate.rb
facets-2.5.1 test/core/enumerable/test_modulate.rb
facets-2.5.2 test/core/enumerable/test_modulate.rb