Example #1
0
 def test_35(self):
     self.assertEqual("PlangPlong", raindrops(35))
Example #2
0
 def test_49(self):
     self.assertEqual("Plong", raindrops(49))
Example #3
0
 def test_01(self):
     self.assertEqual("1", raindrops(1))
Example #4
0
 def test_21(self):
     self.assertEqual("PlingPlong", raindrops(21))
Example #5
0
 def test_14(self):
     self.assertEqual("Plong", raindrops(14))
Example #6
0
 def test_49(self):
     self.assertEqual("Plong", raindrops(49))
Example #7
0
 def test_49(self):
     self.assertEqual(raindrops(49), "Plong")
Example #8
0
 def test_06(self):
     self.assertEqual("Pling", raindrops(6))
Example #9
0
 def test_15(self):
     self.assertEqual(raindrops(15), "PlingPlang")
Example #10
0
 def test_25(self):
     self.assertEqual(raindrops(25), "Plang")
Example #11
0
 def test_14(self):
     self.assertEqual(raindrops(14), "Plong")
Example #12
0
 def test_10(self):
     self.assertEqual(raindrops(10), "Plang")
Example #13
0
 def test_9(self):
     self.assertEqual(raindrops(9), "Pling")
Example #14
0
 def test_105(self):
     self.assertEqual("PlingPlangPlong", raindrops(105))
Example #15
0
 def test_52(self):
     self.assertEqual(raindrops(52), "52")
Example #16
0
 def test_3(self):
     self.assertEqual("Pling", raindrops(3))
Example #17
0
 def test_12121(self):
     self.assertEqual(raindrops(12121), "12121")
Example #18
0
 def test_09(self):
     self.assertEqual("Pling", raindrops(9))
Example #19
0
 def test_1(self):
     self.assertEqual(raindrops(1), "1")
Example #20
0
 def test_25(self):
     self.assertEqual("Plang", raindrops(25))
Example #21
0
 def test_3(self):
     self.assertEqual(raindrops(3), "Pling")
Example #22
0
 def test_105(self):
     self.assertEqual("PlingPlangPlong", raindrops(105))
 def test_2_to_the_power_3_does_not_make_sound(self):
     self.assertEqual(raindrops(8), "8")
Example #24
0
 def test_6(self):
     self.assertEqual(raindrops(6), "Pling")
 def test_the_sound_for_21_is_plingplong(self):
     self.assertEqual(raindrops(21), "PlingPlong")
Example #26
0
 def test_25(self):
     self.assertEqual("Plang", raindrops(25))
 def test_the_sound_for_25_is_plang(self):
     self.assertEqual(raindrops(25), "Plang")
Example #28
0
 def test_1(self):
     self.assertEqual("1", raindrops(1))
 def test_the_sound_for_27_is_pling(self):
     self.assertEqual(raindrops(27), "Pling")
Example #30
0
 def test_52(self):
     self.assertEqual("52", raindrops(52))
 def test_the_sound_for_49_is_plong(self):
     self.assertEqual(raindrops(49), "Plong")
Example #32
0
 def test_12121(self):
     self.assertEqual("12121", raindrops(12121))
 def test_the_sound_for_52_is_52(self):
     self.assertEqual(raindrops(52), "52")
Example #34
0
 def test_03(self):
     self.assertEqual("Pling", raindrops(3))
 def test_the_sound_for_105_is_plingplangplong(self):
     self.assertEqual(raindrops(105), "PlingPlangPlong")
Example #36
0
 def test_07(self):
     self.assertEqual("Plong", raindrops(7))
 def test_the_sound_for_1_is_1(self):
     self.assertEqual(raindrops(1), "1")
Example #38
0
 def test_10(self):
     self.assertEqual("Plang", raindrops(10))
Example #39
0
 def test_7(self):
     self.assertEqual("Plong", raindrops(7))
Example #40
0
 def test_21(self):
     self.assertEqual("PlingPlong", raindrops(21))
Example #41
0
 def test_6(self):
     self.assertEqual("Pling", raindrops(6))
Example #42
0
 def test_35(self):
     self.assertEqual("PlangPlong", raindrops(35))
Example #43
0
 def test_9(self):
     self.assertEqual("Pling", raindrops(9))
Example #44
0
 def test_52(self):
     self.assertEqual("52", raindrops(52))
Example #45
0
 def test_10(self):
     self.assertEqual("Plang", raindrops(10))
Example #46
0
 def test_12121(self):
     self.assertEqual("12121", raindrops(12121))
Example #47
0
 def test_14(self):
     self.assertEqual("Plong", raindrops(14))
Example #48
0
 def test_02(self):
     self.assertEqual("2", raindrops(2))
Example #49
0
 def test_7(self):
     self.assertEqual(raindrops(7), "Plong")