Skip to content

Instantly share code, notes, and snippets.

@javierg
Created November 8, 2018 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javierg/3462bbf1b8f2bb5191ce660ccdfd25eb to your computer and use it in GitHub Desktop.
Save javierg/3462bbf1b8f2bb5191ce660ccdfd25eb to your computer and use it in GitHub Desktop.
require 'minitest/autorun'
require_relative 'raindrops'
class RaindropsTest < Minitest::Test
def test_the_sound_for_1_is_1
end
def test_the_sound_for_3_is_pling
end
def test_the_sound_for_5_is_plang
end
def test_the_sound_for_7_is_plong
end
def test_the_sound_for_6_is_pling_as_it_has_a_factor_3
end
def test_2_to_the_power_3_does_not_make_a_raindrop_sound_as_3_is_the_exponent_not_the_base
end
def test_the_sound_for_9_is_pling_as_it_has_a_factor_3
end
def test_the_sound_for_10_is_plang_as_it_has_a_factor_5
end
def test_the_sound_for_14_is_plong_as_it_has_a_factor_of_7
end
def test_the_sound_for_15_is_plingplang_as_it_has_factors_3_and_5
end
def test_the_sound_for_21_is_plingplong_as_it_has_factors_3_and_7
end
def test_the_sound_for_25_is_plang_as_it_has_a_factor_5
end
def test_the_sound_for_27_is_pling_as_it_has_a_factor_3
end
def test_the_sound_for_35_is_plangplong_as_it_has_factors_5_and_7
end
def test_the_sound_for_49_is_plong_as_it_has_a_factor_7
end
def test_the_sound_for_52_is_52
end
def test_the_sound_for_105_is_plingplangplong_as_it_has_factors_3_5_and_7
end
def test_the_sound_for_3125_is_plang_as_it_has_a_factor_5
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment