Skip to content

Instantly share code, notes, and snippets.

@cpjolicoeur
Last active February 19, 2026 19:52
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::Test
def test_1
assert_equal "Ho!", ho()
end
def test_2
assert_equal "Ho Ho!", ho(ho())
end
def test_3
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