Skip to content

Instantly share code, notes, and snippets.

@Watson1978
Created March 14, 2011 12:57
Show Gist options
  • Save Watson1978/869076 to your computer and use it in GitHub Desktop.
Save Watson1978/869076 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment