Sha256: 3022708c834a7544fed066fb900c7378703e4e51a570e95b1e8c037672676640
Contents?: true
Size: 733 Bytes
Versions: 1
Compression:
Stored size: 733 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/array/first.rb # # Extracted Wed Jan 25 11:25:39 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/array/first.rb' require 'test/unit' class TCArray < Test::Unit::TestCase def test_first_eq a = [1,2] a.first = 0 assert_equal( [0,2], a ) end def test_first! a = [1,2,3] assert_equal( 1, a.first! ) assert_equal( [2,3], a ) end def test_last_eq a = [1,2] a.last = 3 assert_equal( [1,3], a ) end def test_last! a = [1,2,3] assert_equal( 3, a.last! ) assert_equal( [1,2], a ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.0.3 | packages/core/test/lib/facet/array/test_first.rb |