Sha256: 6b65ea02f55443457da04760ab572ad8fdf18a3d18c0a2b15372b9c73a16698c

Contents?: true

Size: 333 Bytes

Versions: 4

Compression:

Stored size: 333 Bytes

Contents

covers 'facets/integer/of'

testcase Integer do

  unit :of do
    a = 4
    b = a.of{ |i| i*2 }
    b.assert == [0,2,4,6]
  end

  unit :times_collect do
    a = 4
    b = a.times_collect{ |i| i*2 }
    b.assert == [0,2,4,6]
  end

  unit :times_map do
    a = 4
    b = a.times_map{ |i| i*2 }
    b.assert == [0,2,4,6]
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/integer/test_of.rb
facets-2.9.0 test/core/integer/test_of.rb
facets-2.9.0.pre.2 test/core/integer/test_of.rb
facets-2.9.0.pre.1 test/core/integer/test_of.rb