summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/evendoors_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/evendoors_spec.rb b/spec/evendoors_spec.rb
index 259c3bc..51e193e 100644
--- a/spec/evendoors_spec.rb
+++ b/spec/evendoors_spec.rb
@@ -136,6 +136,12 @@ describe EvenDoors do
p.merged(1).should be_nil
p.merged_shift.should be o
p.merged(0).should be_nil
+ p.merge! q
+ p.merge! o
+ p.merged(0).should be q
+ p.merged(1).should be o
+ p.clear_merged!
+ p.merged(0).should be_nil
end
#
it "routing: add_dsts, next_dst and dst_routed!" do