Sha256: cc0fe2b0aa1efca51be7a588d3f5b4909b8259d4612f9e4bd306c9ec40bc1cdc
Contents?: true
Size: 835 Bytes
Versions: 1
Compression:
Stored size: 835 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/range/umbrella.rb # # Extracted Wed Aug 23 18:22:52 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.7.30 | test/lib/facets/core/range/test_umbrella.rb |