Sha256: 831555d8e8022a650a30d5b94ca5069d51ffcfb887bfed50bdb9b83cfec06cc3

Contents?: true

Size: 352 Bytes

Versions: 19

Compression:

Stored size: 352 Bytes

Contents

# Test facets/array/stackable.rb

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

19 entries across 19 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/array/test_stackable.rb
facets-2.8.3 test/core/array/test_stackable.rb
facets-2.8.2 test/core/array/test_stackable.rb
facets-2.8.1 test/core/array/test_stackable.rb
facets-2.8.0 test/core/array/test_stackable.rb
facets-2.7.0 test/core/array/test_stackable.rb
facets-2.6.0 test/core/array/test_stackable.rb
facets-2.4.0 test/array/test_stackable.rb
facets-2.2.0 test/unit/array/test_stackable.rb
facets-2.2.1 test/unit/array/test_stackable.rb
facets-2.3.0 test/core/array/test_stackable.rb
facets-2.4.1 test/array/test_stackable.rb
facets-2.4.2 test/core/array/test_stackable.rb
facets-2.4.4 test/core/array/test_stackable.rb
facets-2.4.3 test/core/array/test_stackable.rb
facets-2.4.5 test/core/array/test_stackable.rb
facets-2.5.1 test/core/array/test_stackable.rb
facets-2.5.0 test/core/array/test_stackable.rb
facets-2.5.2 test/core/array/test_stackable.rb