Watson1978
3/14/2011 - 12:57 PM

test_array_sort_by.rb

require 'test/unit/assertions.rb'
include Test::Unit::Assertions

ary = [1, 2, 3]
dup = ary.dup

ary.sort_by!{ break }
assert_equal(ary, dup)

puts :ok