Sha256: e7daadf2ba0b49303c118967aff802ad6ff12f73855a5c1bea70c7ff7866b650

Contents?: true

Size: 802 Bytes

Versions: 193

Compression:

Stored size: 802 Bytes

Contents

module PalindromicFixtureSharedContext
  extend RSpec::Core::SharedContext
  include IntervalSkipListSpecHelper

  attr_reader :list, :node

  def construct_interval_skip_list
    @list = IntervalSkipList.new
  end

  def expected_node_heights
    [3, 2, 1, 3, 1, 2, 3]
  end

  def populate_interval_skip_list
    @list.insert(1..3, :a)
    @list.insert(1..5, :b)
    @list.insert(1..7, :c)
    @list.insert(1..9, :d)
    @list.insert(1..11, :e)
    @list.insert(1..13, :f)
    @list.insert(5..13, :g)
  end

  def make_it_determinisitic
    extend NextNodeHeightIsDeterministicSharedContext # use the method without getting the filter
    next_node_height_is_deterministic
  end

  before :each do
    construct_interval_skip_list
    make_it_determinisitic
    populate_interval_skip_list
  end
end

Version data entries

193 entries across 178 versions & 30 rubygems

Version Path
challah-1.0.0 vendor/bundle/gems/treetop-1.4.14/spec/runtime/interval_skip_list/palindromic_fixture.rb
classiccms-0.7.2 vendor/bundle/gems/treetop-1.4.10/spec/runtime/interval_skip_list/palindromic_fixture.rb
classiccms-0.7.1 vendor/bundle/gems/treetop-1.4.10/spec/runtime/interval_skip_list/palindromic_fixture.rb
swipe-rails-0.0.5 vendor/bundle/gems/treetop-1.4.14/spec/runtime/interval_skip_list/palindromic_fixture.rb
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/spec/runtime/interval_skip_list/palindromic_fixture.rb
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/spec/runtime/interval_skip_list/palindromic_fixture.rb
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/spec/runtime/interval_skip_list/palindromic_fixture.rb
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/spec/runtime/interval_skip_list/palindromic_fixture.rb
treetop-1.4.14 spec/runtime/interval_skip_list/palindromic_fixture.rb
classiccms-0.7.0 vendor/bundle/gems/treetop-1.4.10/spec/runtime/interval_skip_list/palindromic_fixture.rb
challah-1.0.0.beta3 vendor/bundle/gems/treetop-1.4.12/spec/runtime/interval_skip_list/palindromic_fixture.rb
fc-webicons-0.0.4 vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/spec/runtime/interval_skip_list/palindromic_fixture.rb
challah-1.0.0.beta2 vendor/bundle/gems/treetop-1.4.12/spec/runtime/interval_skip_list/palindromic_fixture.rb
challah-1.0.0.beta vendor/bundle/gems/treetop-1.4.12/spec/runtime/interval_skip_list/palindromic_fixture.rb
fc-webicons-0.0.3 vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/spec/runtime/interval_skip_list/palindromic_fixture.rb
fc-webicons-0.0.2 vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/spec/runtime/interval_skip_list/palindromic_fixture.rb
fc-webicons-0.0.1 vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/spec/runtime/interval_skip_list/palindromic_fixture.rb
active_mailer-0.0.5 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/spec/runtime/interval_skip_list/palindromic_fixture.rb
active_mailer-0.0.4 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/spec/runtime/interval_skip_list/palindromic_fixture.rb
active_mailer-0.0.3 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/spec/runtime/interval_skip_list/palindromic_fixture.rb