Sha256: 45f9d8b53b0af01cb45796f8111c2ea052f79c1745596e8ac2890a51a56150d7
Contents?: true
Size: 483 Bytes
Versions: 1
Compression:
Stored size: 483 Bytes
Contents
# -*- coding: utf-8 -*- require "sixarm_ruby_integer_map_test" describe Integer do describe "map" do describe "with block" do it "return an array" do actual = 3.map{"x"} expect(actual).must_equal ["x", "x", "x"] end end describe "with block and index" do it "return an array that demonstrates the use of the index" do actual = 3.map{|i| i * 3 } expect(actual).must_equal [0, 3, 6] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_integer_map-2.0.0 | test/sixarm_ruby_integer_map_test/integer/map_test.rb |