Last active
February 19, 2026 19:52
-
-
Save cpjolicoeur/aa3043d82b4c8103a5f515795ca03930 to your computer and use it in GitHub Desktop.
Ruby 3.x HoHoHo exercise
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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