Skip to content

Instantly share code, notes, and snippets.

@cpjolicoeur
Last active April 24, 2026 02:17
Show Gist options
  • Select an option

  • Save cpjolicoeur/aa3043d82b4c8103a5f515795ca03930 to your computer and use it in GitHub Desktop.

Select an option

Save cpjolicoeur/aa3043d82b4c8103a5f515795ca03930 to your computer and use it in GitHub Desktop.
Ruby 3.x HoHoHo exercise
require 'minitest/autorun'
def ho
# TODO: Make me work
end
class HoHoHoTest < MiniTest::Unit::TestCase
def test_it_up
assert_equal ho(), "Ho!"
assert_equal ho(ho()), "Ho Ho!"
assert_equal ho(ho(ho())), "Ho Ho Ho!"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment