fedora-migrator /vendor/gems/facets-2.4.5/test/core/array/test_stackable.rb

Language Ruby Lines 23
MD5 Hash f258a301133b77498a789e9a06521fbc Estimated Cost $306 (why?)
Repository https://bitbucket.org/mediashelf/fedora-migrator View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# 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
Back to Top