Sha256: d0faa249fdbf09ce441c07beac399f9ae645a5bcd7977987d3d75a326d62a320

Contents?: true

Size: 612 Bytes

Versions: 1

Compression:

Stored size: 612 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/array/range.rb
#
# Extracted Wed Aug 23 18:22:53 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.30 test/lib/facets/core/array/test_range.rb