Sha256: b43aaaa8ece3064c8eaae74e84355b568bcbf92428384063d615403df3f29e36

Contents?: true

Size: 823 Bytes

Versions: 1

Compression:

Stored size: 823 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/range/umbrella.rb
#
# Extracted Wed Jan 25 11:25:39 EST 2006
# Unit Tools Reap Test Extractor
#

require 'facet/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.0.3 packages/core/test/lib/facet/range/test_umbrella.rb