Skip to content

Commit

Permalink
Changed lettering to keep it in alphabetic order
Browse files Browse the repository at this point in the history
  • Loading branch information
nathansobo committed Jan 22, 2008
1 parent 70aba65 commit 229af46
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions spec/runtime/interval_skip_list/delete_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def expected_node_heights
end

before do
list.insert(1..3, :b)
list.insert(1..5, :c)
list.insert(1..7, :d)
list.insert(1..9, :a)
list.insert(1..3, :a)
list.insert(1..5, :b)
list.insert(1..7, :c)
list.insert(1..9, :d)
end

describe " #nodes" do
Expand All @@ -36,8 +36,8 @@ def expected_node_heights
node.height.should == 1
end

it "has :b, :c, :d, :a as its only forward markers at level 0" do
node.forward_markers[0].should have_markers(:b, :c, :d, :a)
it "has :a, :b, :c, :d as its only forward markers at level 0" do
node.forward_markers[0].should have_markers(:a, :b, :c, :d)
end
end

Expand All @@ -51,16 +51,16 @@ def expected_node_heights
node.height.should == 3
end

it "has :a as its only forward marker at level 2" do
node.forward_markers[2].should have_marker(:a)
it "has :d as its only forward marker at level 2" do
node.forward_markers[2].should have_marker(:d)
end

it "has :d as its only forward marker at level 1" do
node.forward_markers[1].should have_marker(:d)
it "has :c as its only forward marker at level 1" do
node.forward_markers[1].should have_marker(:c)
end

it "has :c as its only forward marker at level 0" do
node.forward_markers[0].should have_marker(:c)
it "has :b as its only forward marker at level 0" do
node.forward_markers[0].should have_marker(:b)
end
end

Expand All @@ -78,8 +78,8 @@ def expected_node_heights
node.forward_markers[0].should be_empty
end

it "has :c as its only marker" do
node.markers.should have_marker(:c)
it "has :b as its only marker" do
node.markers.should have_marker(:b)
end
end

Expand All @@ -98,8 +98,8 @@ def expected_node_heights
node.forward_markers[1].should be_empty
end

it "has :d as its only marker" do
node.markers.should have_marker(:d)
it "has :c as its only marker" do
node.markers.should have_marker(:c)
end
end

Expand All @@ -119,15 +119,15 @@ def expected_node_heights
node.forward_markers[2].should be_empty
end

it "has :a as its only marker" do
node.markers.should have_marker(:a)
it "has :d as its only marker" do
node.markers.should have_marker(:d)
end
end
end

describe " when :b is deleted" do
describe " when :a is deleted" do
before do
list.delete(:b)
list.delete(:a)
end

describe " nodes[0]" do
Expand All @@ -140,8 +140,8 @@ def expected_node_heights
node.height.should == 1
end

it "has :c, :d, :a as its only forward markers at level 0" do
node.forward_markers[0].should have_markers(:c, :d, :a)
it "has :b, :c, :d as its only forward markers at level 0" do
node.forward_markers[0].should have_markers(:b, :c, :d)
end
end

Expand All @@ -155,12 +155,12 @@ def expected_node_heights
node.height.should == 1
end

it "has :a and :d as its only forward markers at level 0" do
node.forward_markers[0].should have_markers(:a, :d)
it "has :d and :c as its only forward markers at level 0" do
node.forward_markers[0].should have_markers(:c, :d)
end

it "has :a, :c, and :d as its only markers" do
node.markers.should have_markers(:a, :c, :d)
it "has :d, :b, and :c as its only markers" do
node.markers.should have_markers(:b, :c, :d)
end
end

Expand All @@ -174,16 +174,16 @@ def expected_node_heights
node.height.should == 2
end

it "has :a as its only forard marker at level 1" do
node.forward_markers[1].should have_marker(:a)
it "has :d as its only forard marker at level 1" do
node.forward_markers[1].should have_marker(:d)
end

it "has no forward markers at level 0" do
node.forward_markers[0].should be_empty
end

it "has :a and :d as its only markers" do
node.markers.should have_markers(:a, :d)
it "has :d and :c as its only markers" do
node.markers.should have_markers(:c, :d)
end
end

Expand All @@ -203,8 +203,8 @@ def expected_node_heights
node.forward_markers[2].should be_empty
end

it "has :a as its only marker" do
node.markers.should have_marker(:a)
it "has :d as its only marker" do
node.markers.should have_marker(:d)
end
end
end
Expand Down

0 comments on commit 229af46

Please sign in to comment.