global
def debug_lists(expected, obtained)
def debug_lists(expected, obtained) return unless ENV['VERBOSE'] return if expected.sort == obtained.sort to_read = expected.count > obtained.count ? expected : obtained columnize = "\t\t\t\t | \t\t\t\t" puts " | Expected #{columnize} GOT" to_read.each_with_index do |_, index| ok = expected[index] == obtained[index] ? 'v' : 'x' puts "[#{ok}] | #{expected[index]} #{columnize} #{obtained[index]}" end end