Sha256: 1712a4e8127906a9bd29b91adb524901241878a9c64c680eb5a585ea83bc61e3
Contents?: true
Size: 587 Bytes
Versions: 8
Compression:
Stored size: 587 Bytes
Contents
require 'helper' class TestCollection < Test::Unit::TestCase def setup @data = [1,2,3] end def test_initialize collection = Whatser::Collection.new(@data) assert_equal @data, collection.data end def test_each_enumerable iterated = [] collection = Whatser::Collection.new(@data) collection.each do |c| iterated << c end assert_equal @data, iterated end def test_size collection = Whatser::Collection.new assert_equal 0, collection.size collection.data = @data assert_equal @data.size, collection.size end end
Version data entries
8 entries across 8 versions & 1 rubygems