Sha256: f81da62a40a4cecb1cf9a219d829d2f2089a6aeeb89bed30a843069d6c015565

Contents?: true

Size: 334 Bytes

Versions: 3

Compression:

Stored size: 334 Bytes

Contents

# -*- coding: utf-8 -*-
require 'minitest/autorun'
require 'sixarm_ruby_ramp'


class IntegerTest < Minitest::Test

  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

3 entries across 3 versions & 1 rubygems

Version Path
sixarm_ruby_ramp-4.1.0 test/sixarm_ruby_ramp_test/integer_test.rb
sixarm_ruby_ramp-4.0.0 test/sixarm_ruby_ramp_test/integer_test.rb
sixarm_ruby_ramp-3.0.0 test/sixarm_ruby_ramp_test/integer_test.rb