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.

Revisions

  1. cpjolicoeur revised this gist Feb 19, 2026. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions ho-ho-ho.rb
    Original file line number Diff line number Diff line change
    @@ -6,13 +6,13 @@ def ho

    class HoHoHoTest < Minitest::Test
    def test_1
    assert_equal ho(), "Ho!"
    assert_equal "Ho!", ho()
    end
    def test_2
    assert_equal ho(ho()), "Ho Ho!"
    assert_equal "Ho Ho!", ho(ho())
    end
    def test_3
    assert_equal ho(ho(ho())), "Ho Ho Ho!"
    assert_equal "Ho Ho Ho!", ho(ho(ho()))
    end
    end

  2. cpjolicoeur revised this gist Jan 12, 2026. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion ho-ho-ho.rb
    Original file line number Diff line number Diff line change
    @@ -5,9 +5,13 @@ def ho
    end

    class HoHoHoTest < Minitest::Test
    def test_it_up
    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
  3. cpjolicoeur revised this gist Jan 12, 2026. No changes.
  4. cpjolicoeur revised this gist Jan 12, 2026. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion ho-ho-ho.rb
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@

    def ho
    # TODO: Make me work
    "Ho!"
    end

    class HoHoHoTest < Minitest::Test
  5. cpjolicoeur revised this gist Jan 12, 2026. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion ho-ho-ho.rb
    Original file line number Diff line number Diff line change
    @@ -2,12 +2,14 @@

    def ho
    # TODO: Make me work
    "Ho!"
    end

    class HoHoHoTest < MiniTest::Unit::TestCase
    class HoHoHoTest < Minitest::Test
    def test_it_up
    assert_equal ho(), "Ho!"
    assert_equal ho(ho()), "Ho Ho!"
    assert_equal ho(ho(ho())), "Ho Ho Ho!"
    end
    end

  6. cpjolicoeur created this gist Jan 12, 2026.
    13 changes: 13 additions & 0 deletions ho-ho-ho.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    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