Sha256: 97975e5a8240382e31cc51a06ae028a8b2f6a9a2c25ef12cb8a99eb39c02864b
Contents?: true
Size: 949 Bytes
Versions: 11
Compression:
Stored size: 949 Bytes
Contents
require 'rails_helper' describe TestArray do let(:test_array) do TestArray.new end it '#test_in_arg' do expect(test_array.test_in_arg([2, 7.1, 8])).to eq([2, 7.1, 8]) end it '#test_nested_one_level' do expect(test_array.test_nested_one_level([[2, 7.1, 8], :mexico])).to eq([[2, 7.1, 8], :mexico]) end it '#test_nested_two_levels' do expect(test_array.test_nested_two_levels([[[2, 7.1, 8], :mexico], [2, 7.1, 8], :mexico])).to eq([[[2, 7.1, 8], :mexico], [2, 7.1, 8], :mexico]) end it '#test_nested_three_levels' do expect(test_array.test_nested_three_levels([[[[2, 7.1, 8], :mexico], [2, 7.1, 8], :mexico], [[2, 7.1, 8], :mexico], [2, 7.1, 8], :mexico])).to eq([[[[2, 7.1, 8], :mexico], [2, 7.1, 8], :mexico], [[2, 7.1, 8], :mexico], [2, 7.1, 8], :mexico]) end it '#test_hash_nested' do expect(test_array.test_hash_nested([{ emiliano: [2, 7.1, 8] }])).to eq([{ emiliano: [2, 7.1, 8] }]) end end
Version data entries
11 entries across 11 versions & 1 rubygems