Created
April 17, 2015 14:56
-
-
Save ninjs/caa31d6c13ff39d543a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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