Sha256: 4f5dd4981014002ad1159718c309f567d377c50930c02fdd3336c7f32a1761c5

Contents?: true

Size: 675 Bytes

Versions: 1

Compression:

Stored size: 675 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/array/head.rb
#
# Extracted Wed Jul 05 11:47:50 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.5 test/lib/facets/core/array/test_head.rb