diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-28 12:01:34 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-28 12:01:34 +0200 |
commit | 6f52112a9ceb514fdba7716aec6207d7823f6c75 (patch) | |
tree | 1cadcdef0422d6da6a80ef3940c807f6c2310956 | |
parent | 72aa30f46a00a64e4a57e8d91723024f1255d0ff (diff) | |
download | edoors-ruby-6f52112a9ceb514fdba7716aec6207d7823f6c75.zip edoors-ruby-6f52112a9ceb514fdba7716aec6207d7823f6c75.tar.gz |
specs: cover Particle#merged_length
-rw-r--r-- | spec/particle_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/particle_spec.rb b/spec/particle_spec.rb index b8b39ae..862ad14 100644 --- a/spec/particle_spec.rb +++ b/spec/particle_spec.rb @@ -53,6 +53,7 @@ describe Edoors::Particle do c+=1 end c.should be 2 + p.merged_length.should be 2 p.merged_shift.should be q p.merged(0).should be o p.merged(1).should be_nil @@ -62,6 +63,7 @@ describe Edoors::Particle do c+=1 end c.should be 1 + p.merged_length.should be 1 p.merged_shift.should be o p.merged(0).should be_nil c = 0 @@ -70,6 +72,7 @@ describe Edoors::Particle do c+=1 end c.should be 0 + p.merged_length.should be 0 p.merge! q p.merge! o p.merged(0).should be q |