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