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

Version Path
motion-support-1.2.1 spec/motion-support/core_ext/range/include_range_spec.rb
motion-support-1.1.1 spec/motion-support/core_ext/range/include_range_spec.rb
motion-support-1.2.0 spec/motion-support/core_ext/range/include_range_spec.rb
motion-support-1.1.0 spec/motion-support/core_ext/range/include_range_spec.rb
motion-support-1.0.0 spec/motion-support/core_ext/range/include_range_spec.rb
motion-support-0.3.0 spec/motion-support/core_ext/range/include_range_spec.rb
motion_blender-support-0.2.8 spec/motion-support/core_ext/range/include_range_spec.rb
motion_blender-support-0.2.7 spec/motion-support/core_ext/range/include_range_spec.rb
motion-support-0.2.6 spec/motion-support/core_ext/range/include_range_spec.rb
motion-support-0.2.5 spec/motion-support/core_ext/range/include_range_spec.rb
motion-support-0.2.4 spec/motion-support/core_ext/range/include_range_spec.rb
motion-support-0.2.3 spec/motion-support/core_ext/range/include_range_spec.rb
motion-support-0.2.2 spec/motion-support/core_ext/range/include_range_spec.rb
motion-support-0.2.0 spec/motion-support/core_ext/range/include_range_spec.rb