Skip to content

Instantly share code, notes, and snippets.

@bgreg
Created June 28, 2017 17:48
Show Gist options
  • Save bgreg/d418a0b2bc153e1a4fdcbe77593b31cd to your computer and use it in GitHub Desktop.
Save bgreg/d418a0b2bc153e1a4fdcbe77593b31cd to your computer and use it in GitHub Desktop.
def explain(string = "\n")
require "pp"
debug = true
pp string if debug
end
def hr
explain "-" * 80
end
def algorithm(input)
end
def test
input = ""
expected = ""
result = algorithm(input)
if result == expected
puts "❤️❤️❤️❤️❤️❤️❤️❤️❤️ Great Job Greg! I knew you could do it! ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️ "
else
puts "Keep trying, you'll get it next time. I got: #{result}, but I expected: #{expected}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment