test/unit/array/test_stackable.rb in facets-2.1.3 vs test/unit/array/test_stackable.rb in facets-2.2.0
- old
+ new
@@ -1,36 +1,22 @@
- # _____ _
- # |_ _|__ ___| |_
- # | |/ _ \/ __| __|
- # | | __/\__ \ |
- # |_|\___||___/\__|
- #
- # for lib/facets/array/stackable.rb
- #
- # Extracted Mon Sep 03 16:23:07 -0700 2007
- # w/ Test Extraction Ratchet
- #
+# Test facets/array/stackable.rb
- require 'facets/array/stackable.rb'
+require 'facets/array/stackable.rb'
+require 'test/unit'
+class TestArray < Test::Unit::TestCase
- require 'test/unit'
+ def test_poke
+ a = [2,3]
+ assert_equal( [1,2,3], a.poke(1) )
+ assert_equal( [4,1,2,3], a.poke(4) )
+ end
- 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
-
+ def test_pull
+ a = [1,2,3]
+ assert_equal( 1, a.pull )
+ assert_equal( [2,3], a )
end
-
+end