Sha256: 7282af37642febdcead30918038068b9b59ab7b1ff837d1119c8eb1ef76edcae

Contents?: true

Size: 232 Bytes

Versions: 5

Compression:

Stored size: 232 Bytes

Contents

require 'facets/enumerable/take'
require 'test/unit'

class TC_Enumerable_Take < Test::Unit::TestCase

  SOURCE = (1..1/0.0)   # infinite Enumerable object

  def test_finite
    assert_equal [1,2,3,4,5], SOURCE.take(5)
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/enumerable/test_take.rb
facets-2.8.3 test/core/enumerable/test_take.rb
facets-2.8.2 test/core/enumerable/test_take.rb
facets-2.8.1 test/core/enumerable/test_take.rb
facets-2.8.0 test/core/enumerable/test_take.rb