Skip to content

Instantly share code, notes, and snippets.

@ninjs
Created April 17, 2015 14:56
Show Gist options
  • Save ninjs/caa31d6c13ff39d543a2 to your computer and use it in GitHub Desktop.
Save ninjs/caa31d6c13ff39d543a2 to your computer and use it in GitHub Desktop.
require 'pp'
test1 = "ABCDXYZ"
test2 = "ZYXDCBA"
if test1.length == test2.length
puts "Wrong" if test1.chars.sort.join != b.chars.sort.join
else
pp "not the same length"
exit
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment