# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/array/last.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/array/last.rb' require 'test/unit' class TCArray < Test::Unit::TestCase 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