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