Sha256: 5aea76a3da4974b5f3876a88149f7240da2c370e686237b98672015bc1a69d87

Contents?: true

Size: 309 Bytes

Versions: 2

Compression:

Stored size: 309 Bytes

Contents

require 'test/unit'
require 'webget_ruby_ramp'


class IntegerTest < Test::Unit::TestCase

  def test_maps
    expect=['a','a','a']
    actual=3.maps{'a'}
    assert_equal(expect,actual)
  end

  def test_maps_with_index
    expect=[0,1,2]
    actual=3.maps{|i| i}
    assert_equal(expect,actual)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webget_ruby_ramp-1.8.2 test/webget_ruby_ramp/integer_test.rb
webget_ruby_ramp-1.8.0 test/webget_ruby_ramp/integer_test.rb