Sha256: 59c41e8317698aaadd78145cd34b8426c3b2fd91ea23b4a75510f813009cd0b1

Contents?: true

Size: 621 Bytes

Versions: 57

Compression:

Stored size: 621 Bytes

Contents

# -*- coding: utf-8 -*-
require_relative 'test_helper'

module Dynflow
  module RoundRobinTest
    describe RoundRobin do
      let(:rr) { Dynflow::RoundRobin.new }
      specify do
        rr.next.must_be_nil
        rr.next.must_be_nil
        rr.must_be_empty
        rr.add 1
        rr.next.must_equal 1
        rr.next.must_equal 1
        rr.add 2
        rr.next.must_equal 2
        rr.next.must_equal 1
        rr.next.must_equal 2
        rr.delete 1
        rr.next.must_equal 2
        rr.next.must_equal 2
        rr.delete 2
        rr.next.must_be_nil
        rr.must_be_empty
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
dynflow-0.8.16 test/round_robin_test.rb
dynflow-0.8.15 test/round_robin_test.rb
dynflow-0.8.14 test/round_robin_test.rb
dynflow-0.8.13 test/round_robin_test.rb
dynflow-0.8.12 test/round_robin_test.rb
dynflow-0.8.11 test/round_robin_test.rb
dynflow-0.8.10 test/round_robin_test.rb
dynflow-0.8.9 test/round_robin_test.rb
dynflow-0.8.8 test/round_robin_test.rb
dynflow-0.8.7 test/round_robin_test.rb
dynflow-0.8.6 test/round_robin_test.rb
dynflow-0.8.5 test/round_robin_test.rb
dynflow-0.8.4 test/round_robin_test.rb
dynflow-0.8.3 test/round_robin_test.rb
dynflow-0.8.2 test/round_robin_test.rb
dynflow-0.8.1 test/round_robin_test.rb
dynflow-0.8.0 test/round_robin_test.rb