Sha256: 0ba776ec1986e879f5c11569a2bc068f87223f2cf9a57b8c7b47b6ae9be6bb05
Contents?: true
Size: 784 Bytes
Versions: 1
Compression:
Stored size: 784 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/array/pick.rb # # Extracted Fri Feb 16 02:00:37 EST 2007 # Project.rb Test Extraction # require 'facets/core/array/pick.rb' require 'test/unit' class TCArray < Test::Unit::TestCase def test_pick a = ['a','b','c'] assert_equal( 3, a.pick(3).length ) assert_equal( 3, a.length ) a = ['a','b','c'] assert_equal( 3, a.pick(4).length ) assert_equal( 3, a.length ) end def test_pick! a = ['a','b','c'] assert_equal( 3, a.pick!(3).length ) assert_equal( 0, a.length ) a = ['a','b','c'] assert_equal( 3, a.pick!(4).length ) assert_equal( 0, a.length ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.8.49 | test/lib/facets/core/array/test_pick.rb |