Sha256: 5b21622549b64dcc07b074a198138e8dd4d172b7f94a5d9b00f74b12b06e84d7
Contents?: true
Size: 321 Bytes
Versions: 11
Compression:
Stored size: 321 Bytes
Contents
require 'spec_helper' describe Set do describe '#shift' do it 'removes and returns an item from the set' do set = described_class.new set << 1 expect(set.size).to eq(1) expect(set.shift).to eq(1) expect(set.size).to eq(0) end end end
Version data entries
11 entries across 11 versions & 1 rubygems