Sha256: c7b7991f95dde398f5a8bf0a43aab6a9802fe00ed4f533358a0f016607869660

Contents?: true

Size: 590 Bytes

Versions: 10

Compression:

Stored size: 590 Bytes

Contents

  #  _____         _
  # |_   _|__  ___| |_
  #   | |/ _ \/ __| __|
  #   | |  __/\__ \ |
  #   |_|\___||___/\__|
  #
  # for lib/facets/array/stackable.rb
  #
  # Extracted Mon Sep 03 16:23:07 -0700 2007
  # w/ Test Extraction Ratchet
  #

 require 'facets/array/stackable.rb'



  require 'test/unit'

  class TestArray < Test::Unit::TestCase

    def test_poke
      a = [2,3]
      assert_equal( [1,2,3], a.poke(1) )
      assert_equal( [4,1,2,3], a.poke(4) )
    end

    def test_pull
      a = [1,2,3]
      assert_equal( 1, a.pull )
      assert_equal( [2,3], a )
    end

  end



Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
facets-2.0.0 test/unit/array/test_stackable.rb
facets-2.0.1 test/unit/array/test_stackable.rb
facets-2.0.2 test/unit/array/test_stackable.rb
facets-2.0.5 test/unit/array/test_stackable.rb
facets-2.1.1 test/unit/array/test_stackable.rb
facets-2.1.2 test/unit/array/test_stackable.rb
facets-2.1.0 test/unit/array/test_stackable.rb
facets-2.0.3 test/unit/array/test_stackable.rb
facets-2.0.4 test/unit/array/test_stackable.rb
facets-2.1.3 test/unit/array/test_stackable.rb