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