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