Sha256: 632990ecda4d5f17cf3fec3a4c07d41fd01b3a07ad16351191e4ad7030d12438

Contents?: true

Size: 675 Bytes

Versions: 1

Compression:

Stored size: 675 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/array/head.rb
#
# Extracted Mon Jun 05 08:14:29 EDT 2006
# Unit Tools Reap Test Extractor
#

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


  require 'test/unit'

  class TCArray < Test::Unit::TestCase

    def test_head
      a = [1,2,3,4,5]
      assert_equal( [1], a.head )
    end

    def test_tail
      a = [1,2,3,4,5]
      assert_equal( [2,3,4,5], a.tail )
    end

    def test_foot
      a = [1,2,3,4,5]
      assert_equal( [5], a.foot )
    end

    def test_body
      a = [1,2,3,4,5]
      assert_equal( [1,2,3,4], a.body )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.4.0 test/lib/facets/core/array/test_head.rb