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
logstash-output-scalyr-0.2.1.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.2.0 vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.2.0.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.26.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.25.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.24.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.23.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.22.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.17.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.16.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.15.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.14.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.13 vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.12 vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.11.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.10.beta vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb