コード例 #1
0
ファイル: rain_test.py プロジェクト: banji220/raindrops
 def test_the_sound_for_number_4_is_4(self):
     self.assertEqual(convert(4), 4)
コード例 #2
0
 def test_the_sound_for_52_is_52(self):
     self.assertEqual(convert(52), "52")
コード例 #3
0
 def test_the_sound_for_3125_is_plang_as_it_has_a_factor_5(self):
     self.assertEqual(convert(3125), "Plang")
コード例 #4
0
 def test_the_sound_for_14_is_plong_as_it_has_a_factor_of_7(self):
     self.assertEqual(convert(14), "Plong")
コード例 #5
0
 def test_the_sound_for_27_is_pling_as_it_has_a_factor_3(self):
     self.assertEqual(convert(27), "Pling")
コード例 #6
0
 def test_the_sound_for_3_is_pling(self):
     self.assertEqual(convert(3), "Pling")
コード例 #7
0
 def test_the_sound_for_7_is_plong(self):
     self.assertEqual(convert(7), "Plong")
コード例 #8
0
 def test_the_sound_for_21_is_pling_plong_as_it_has_factors_3_and_7(self):
     assert convert(21) == "PlingPlong"
コード例 #9
0
 def test_the_sound_for_1_is_1(self):
     assert convert(1) == "1"
コード例 #10
0
 def test_the_sound_for_14_is_plong_as_it_has_a_factor_of_7(self):
     assert convert(14) == "Plong"
コード例 #11
0
 def test_the_sound_for_15_is_pling_plang_as_it_has_factors_3_and_5(self):
     assert convert(15) == "PlingPlang"
コード例 #12
0
 def test_2_to_the_power_3_does_not_make_a_raindrop_sound_as_3_is_the_exponent_not_the_base(
     self, ):
     assert convert(8) == "8"
コード例 #13
0
 def test_the_sound_for_7_is_plong(self):
     assert convert(7) == "Plong"
コード例 #14
0
 def test_the_sound_for_5_is_plang(self):
     assert convert(5) == "Plang"
コード例 #15
0
 def test_the_sound_for_21_is_plingplong(self):
     self.assertEqual(convert(21), "PlingPlong")
コード例 #16
0
 def test_the_sound_for_27_is_pling_as_it_has_a_factor_3(self):
     assert convert(27) == "Pling"
コード例 #17
0
 def test_the_sound_for_105_is_plingplangplong(self):
     self.assertEqual(convert(105), "PlingPlangPlong")
コード例 #18
0
 def test_the_sound_for_49_is_plong_as_it_has_a_factor_7(self):
     assert convert(49) == "Plong"
コード例 #19
0
 def test_the_sound_for_5_is_plang(self):
     self.assertEqual(convert(5), "Plang")
コード例 #20
0
 def test_the_sound_for_52_is_52(self):
     assert convert(52) == "52"
コード例 #21
0
 def test_2_to_the_power_3_does_not_make_a_raindrop_sound_as_3_is_the_exponent_not_the_base(
         self):
     self.assertEqual(convert(8), "8")
コード例 #22
0
 def test_the_sound_for_105_is_pling_plang_plong_as_it_has_factors_3_5_and_7(
         self):
     assert convert(105) == "PlingPlangPlong"
コード例 #23
0
 def test_the_sound_for_21_is_pling_plong_as_it_has_factors_3_and_7(self):
     self.assertEqual(convert(21), "PlingPlong")
コード例 #24
0
 def test_the_sound_for_3125_is_plang_as_it_has_a_factor_5(self):
     assert convert(3125) == "Plang"
コード例 #25
0
 def test_the_sound_for_49_is_plong_as_it_has_a_factor_7(self):
     self.assertEqual(convert(49), "Plong")
コード例 #26
0
 def test_the_sound_for_3_is_pling(self):
     assert convert(3) == "Pling"
コード例 #27
0
 def test_the_sound_for_105_is_pling_plang_plong_as_it_has_factors_3_5_and_7(
         self):
     self.assertEqual(convert(105), "PlingPlangPlong")
コード例 #28
0
 def test_2_to_the_power_3_does_not_make_sound(self):
     self.assertEqual(convert(8), "8")
コード例 #29
0
 def test_the_sound_for_1_is_1(self):
     self.assertEqual(convert(1), "1")
コード例 #30
0
ファイル: rain_test.py プロジェクト: banji220/raindrops
 def test_the_sound_four_number_105_is_PlingPlangPlong(self):
     self.assertEqual(convert(105), "PlingPlangPlong")