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-1.3.0 test/round_robin_test.rb
dynflow-1.2.3 test/round_robin_test.rb
dynflow-1.2.2 test/round_robin_test.rb
dynflow-1.2.1 test/round_robin_test.rb
dynflow-1.2.0 test/round_robin_test.rb
dynflow-1.2.0.pre1 test/round_robin_test.rb
dynflow-1.1.6 test/round_robin_test.rb
dynflow-1.1.5 test/round_robin_test.rb
dynflow-1.1.4 test/round_robin_test.rb
dynflow-1.1.3 test/round_robin_test.rb
dynflow-1.1.2 test/round_robin_test.rb
dynflow-1.1.1 test/round_robin_test.rb
dynflow-1.1.0 test/round_robin_test.rb
dynflow-1.0.5 test/round_robin_test.rb
dynflow-1.0.4 test/round_robin_test.rb
dynflow-1.0.3 test/round_robin_test.rb
dynflow-1.0.2 test/round_robin_test.rb
dynflow-1.0.1 test/round_robin_test.rb
dynflow-1.0.0 test/round_robin_test.rb
dynflow-0.8.37 test/round_robin_test.rb