Sha256: ca627ba0de430d8e078f6e94a75b29cc1209996afdffc81a6d0ea2c1d5f3ad5f
Contents?: true
Size: 815 Bytes
Versions: 14
Compression:
Stored size: 815 Bytes
Contents
describe "Range" do describe "include?" do it "should should include identical inclusive" do (1..10).should.include(1..10) end it "should should include identical exclusive" do (1...10).should.include(1...10) end it "should should include other with exlusive end" do (1..10).should.include(1...10) end it "should exclusive end should not include identical with inclusive end" do (1...10).should.not.include(1..10) end it "should should not include overlapping first" do (2..8).should.not.include(1..3) end it "should should not include overlapping last" do (2..8).should.not.include(5..9) end it "should should include identical exclusive with floats" do (1.0...10.0).should.include(1.0...10.0) end end end
Version data entries
14 entries across 14 versions & 2 rubygems