Skip to content

Instantly share code, notes, and snippets.

@cpjolicoeur
Last active January 12, 2026 19:04
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