Sha256: 81f82f0ce5d1c0140d78dee075f4976adab3ca86dfee5ab6234ef617b4ba6d61

Contents?: true

Size: 239 Bytes

Versions: 16

Compression:

Stored size: 239 Bytes

Contents

require 'facets/range/overlap'
require 'test/unit'

class TestRangeOverlap < Test::Unit::TestCase

  def test_overlaps
    assert( (4..5).overlap?(3..6) )
  end

  def test_does_not_overlap
    assert(! (7..9).overlap?(3..6) )
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/range/test_overlap.rb
facets-2.8.3 test/core/range/test_overlap.rb
facets-2.8.2 test/core/range/test_overlap.rb
facets-2.8.1 test/core/range/test_overlap.rb
facets-2.8.0 test/core/range/test_overlap.rb
facets-2.7.0 test/core/range/test_overlap.rb
facets-2.6.0 test/core/range/test_overlap.rb
facets-2.4.0 test/range/test_overlap.rb
facets-2.4.1 test/range/test_overlap.rb
facets-2.4.3 test/core/range/test_overlap.rb
facets-2.4.4 test/core/range/test_overlap.rb
facets-2.4.2 test/core/range/test_overlap.rb
facets-2.5.1 test/core/range/test_overlap.rb
facets-2.4.5 test/core/range/test_overlap.rb
facets-2.5.0 test/core/range/test_overlap.rb
facets-2.5.2 test/core/range/test_overlap.rb