|
4 | 4 | class RaindropsTest < Minitest::Test
|
5 | 5 | def test_the_sound_for_1_is_1
|
6 | 6 | # skip
|
7 |
| - assert_equal "1", Raindrops.convert(1) |
| 7 | + actual = Raindrops.convert(1) |
| 8 | + expected = '1' |
| 9 | + assert_equal expected, actual |
8 | 10 | end
|
9 | 11 |
|
10 | 12 | def test_the_sound_for_3_is_pling
|
11 | 13 | skip
|
12 |
| - assert_equal "Pling", Raindrops.convert(3) |
| 14 | + actual = Raindrops.convert(3) |
| 15 | + expected = 'Pling' |
| 16 | + assert_equal expected, actual |
13 | 17 | end
|
14 | 18 |
|
15 | 19 | def test_the_sound_for_5_is_plang
|
16 | 20 | skip
|
17 |
| - assert_equal "Plang", Raindrops.convert(5) |
| 21 | + actual = Raindrops.convert(5) |
| 22 | + expected = 'Plang' |
| 23 | + assert_equal expected, actual |
18 | 24 | end
|
19 | 25 |
|
20 | 26 | def test_the_sound_for_7_is_plong
|
21 | 27 | skip
|
22 |
| - assert_equal "Plong", Raindrops.convert(7) |
| 28 | + actual = Raindrops.convert(7) |
| 29 | + expected = 'Plong' |
| 30 | + assert_equal expected, actual |
23 | 31 | end
|
24 | 32 |
|
25 | 33 | def test_the_sound_for_6_is_pling_as_it_has_a_factor_3
|
26 | 34 | skip
|
27 |
| - assert_equal "Pling", Raindrops.convert(6) |
| 35 | + actual = Raindrops.convert(6) |
| 36 | + expected = 'Pling' |
| 37 | + assert_equal expected, actual |
28 | 38 | end
|
29 | 39 |
|
30 | 40 | def test_2_to_the_power_3_does_not_make_a_raindrop_sound_as_3_is_the_exponent_not_the_base
|
31 | 41 | skip
|
32 |
| - assert_equal "8", Raindrops.convert(8) |
| 42 | + actual = Raindrops.convert(8) |
| 43 | + expected = '8' |
| 44 | + assert_equal expected, actual |
33 | 45 | end
|
34 | 46 |
|
35 | 47 | def test_the_sound_for_9_is_pling_as_it_has_a_factor_3
|
36 | 48 | skip
|
37 |
| - assert_equal "Pling", Raindrops.convert(9) |
| 49 | + actual = Raindrops.convert(9) |
| 50 | + expected = 'Pling' |
| 51 | + assert_equal expected, actual |
38 | 52 | end
|
39 | 53 |
|
40 | 54 | def test_the_sound_for_10_is_plang_as_it_has_a_factor_5
|
41 | 55 | skip
|
42 |
| - assert_equal "Plang", Raindrops.convert(10) |
| 56 | + actual = Raindrops.convert(10) |
| 57 | + expected = 'Plang' |
| 58 | + assert_equal expected, actual |
43 | 59 | end
|
44 | 60 |
|
45 | 61 | def test_the_sound_for_14_is_plong_as_it_has_a_factor_of_7
|
46 | 62 | skip
|
47 |
| - assert_equal "Plong", Raindrops.convert(14) |
| 63 | + actual = Raindrops.convert(14) |
| 64 | + expected = 'Plong' |
| 65 | + assert_equal expected, actual |
48 | 66 | end
|
49 | 67 |
|
50 | 68 | def test_the_sound_for_15_is_plingplang_as_it_has_factors_3_and_5
|
51 | 69 | skip
|
52 |
| - assert_equal "PlingPlang", Raindrops.convert(15) |
| 70 | + actual = Raindrops.convert(15) |
| 71 | + expected = 'PlingPlang' |
| 72 | + assert_equal expected, actual |
53 | 73 | end
|
54 | 74 |
|
55 | 75 | def test_the_sound_for_21_is_plingplong_as_it_has_factors_3_and_7
|
56 | 76 | skip
|
57 |
| - assert_equal "PlingPlong", Raindrops.convert(21) |
| 77 | + actual = Raindrops.convert(21) |
| 78 | + expected = 'PlingPlong' |
| 79 | + assert_equal expected, actual |
58 | 80 | end
|
59 | 81 |
|
60 | 82 | def test_the_sound_for_25_is_plang_as_it_has_a_factor_5
|
61 | 83 | skip
|
62 |
| - assert_equal "Plang", Raindrops.convert(25) |
| 84 | + actual = Raindrops.convert(25) |
| 85 | + expected = 'Plang' |
| 86 | + assert_equal expected, actual |
63 | 87 | end
|
64 | 88 |
|
65 | 89 | def test_the_sound_for_27_is_pling_as_it_has_a_factor_3
|
66 | 90 | skip
|
67 |
| - assert_equal "Pling", Raindrops.convert(27) |
| 91 | + actual = Raindrops.convert(27) |
| 92 | + expected = 'Pling' |
| 93 | + assert_equal expected, actual |
68 | 94 | end
|
69 | 95 |
|
70 | 96 | def test_the_sound_for_35_is_plangplong_as_it_has_factors_5_and_7
|
71 | 97 | skip
|
72 |
| - assert_equal "PlangPlong", Raindrops.convert(35) |
| 98 | + actual = Raindrops.convert(35) |
| 99 | + expected = 'PlangPlong' |
| 100 | + assert_equal expected, actual |
73 | 101 | end
|
74 | 102 |
|
75 | 103 | def test_the_sound_for_49_is_plong_as_it_has_a_factor_7
|
76 | 104 | skip
|
77 |
| - assert_equal "Plong", Raindrops.convert(49) |
| 105 | + actual = Raindrops.convert(49) |
| 106 | + expected = 'Plong' |
| 107 | + assert_equal expected, actual |
78 | 108 | end
|
79 | 109 |
|
80 | 110 | def test_the_sound_for_52_is_52
|
81 | 111 | skip
|
82 |
| - assert_equal "52", Raindrops.convert(52) |
| 112 | + actual = Raindrops.convert(52) |
| 113 | + expected = '52' |
| 114 | + assert_equal expected, actual |
83 | 115 | end
|
84 | 116 |
|
85 | 117 | def test_the_sound_for_105_is_plingplangplong_as_it_has_factors_3_5_and_7
|
86 | 118 | skip
|
87 |
| - assert_equal "PlingPlangPlong", Raindrops.convert(105) |
| 119 | + actual = Raindrops.convert(105) |
| 120 | + expected = 'PlingPlangPlong' |
| 121 | + assert_equal expected, actual |
88 | 122 | end
|
89 | 123 |
|
90 | 124 | def test_the_sound_for_3125_is_plang_as_it_has_a_factor_5
|
91 | 125 | skip
|
92 |
| - assert_equal "Plang", Raindrops.convert(3125) |
| 126 | + actual = Raindrops.convert(3125) |
| 127 | + expected = 'Plang' |
| 128 | + assert_equal expected, actual |
93 | 129 | end
|
94 | 130 | end
|
0 commit comments