Sha256: d4e10d2358c8daf605a140ab78f4e5f303ff845c78203e7b9a214a09d59f9466

Contents?: true

Size: 612 Bytes

Versions: 1

Compression:

Stored size: 612 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/array/range.rb
#
# Extracted Tue Jul 25 10:07:15 EDT 2006
# Unit Tools Reap Test Extractor
#

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


  require 'test/unit'

  class TCArray < Test::Unit::TestCase

    def test_range
      a = [1,2,3,4,5]
      b = [1,2,3,4,5,6]
      assert_equal( (0..4), a.range )
      assert_equal( (0..5), b.range )
      assert_equal( (1..3), a.range(2,4) )
      assert_equal( (1..2), b.range(2,3) )
      assert_equal( (3..1), b.range(4,2) )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.0 test/lib/facets/core/array/test_range.rb