Sha256: ee7adf4f9e29e3d3eaaa8beec8e3afc7915d0f75536e4a53239762ac18f172a3

Contents?: true

Size: 835 Bytes

Versions: 1

Compression:

Stored size: 835 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/range/umbrella.rb
#
# Extracted Tue Jun 20 15:12:27 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/range/umbrella.rb'


  require 'test/unit'

  class TCRange < Test::Unit::TestCase

    def test_umbrella
      assert_equal( [1,1], (3..6).umbrella(2..7) )
      assert_equal( [0,1], (3..6).umbrella(3..7) )
      assert_equal( [-1,1], (3..6).umbrella(4..7) )
      assert_equal( [1,0], (3..6).umbrella(2..6) )
      assert_equal( [0,0], (3..6).umbrella(3..6) )
      assert_equal( [-1,0], (3..6).umbrella(4..6) )
      assert_equal( [1,-1], (3..6).umbrella(2..5) )
      assert_equal( [0,-1], (3..6).umbrella(3..5) )
      assert_equal( [-1,-1], (3..6).umbrella(4..5) )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.4.2 test/lib/facets/core/range/test_umbrella.rb