@@ -9,134 +9,128 @@ using namespace bottle_song;
99
1010TEST_CASE (" first_generic_verse" , " [d4ccf8fc-01dc-48c0-a201-4fbeb30f2d03]" ) {
1111 auto verses = recite (10 , 1 );
12- REQUIRE (verses == std::vector<std::string>{
13- " Ten green bottles hanging on the wall, " ,
14- " Ten green bottles hanging on the wall," ,
15- " And if one green bottle should accidentally fall ," ,
16- " There'll be nine green bottles hanging on the wall. "
17- });
12+ REQUIRE (verses ==
13+ std::vector<std::string>{
14+ " Ten green bottles hanging on the wall," ,
15+ " Ten green bottles hanging on the wall ," ,
16+ " And if one green bottle should accidentally fall, " ,
17+ " There'll be nine green bottles hanging on the wall. " });
1818}
1919
2020#if defined(EXERCISM_RUN_ALL_TESTS)
2121
2222TEST_CASE (" last_generic_verse" , " [0f0aded3-472a-4c64-b842-18d4f1f5f030]" ) {
2323 auto verses = recite (3 , 1 );
24- REQUIRE (verses == std::vector<std::string>{
25- " Three green bottles hanging on the wall, " ,
26- " Three green bottles hanging on the wall," ,
27- " And if one green bottle should accidentally fall ," ,
28- " There'll be two green bottles hanging on the wall. "
29- });
24+ REQUIRE (verses ==
25+ std::vector<std::string>{
26+ " Three green bottles hanging on the wall," ,
27+ " Three green bottles hanging on the wall ," ,
28+ " And if one green bottle should accidentally fall, " ,
29+ " There'll be two green bottles hanging on the wall. " });
3030}
3131
3232TEST_CASE (" verse_with_2_bottles" , " [f61f3c97-131f-459e-b40a-7428f3ed99d9]" ) {
3333 auto verses = recite (2 , 1 );
3434 REQUIRE (verses == std::vector<std::string>{
35- " Two green bottles hanging on the wall," ,
36- " Two green bottles hanging on the wall," ,
37- " And if one green bottle should accidentally fall," ,
38- " There'll be one green bottle hanging on the wall."
39- });
35+ " Two green bottles hanging on the wall," ,
36+ " Two green bottles hanging on the wall," ,
37+ " And if one green bottle should accidentally fall," ,
38+ " There'll be one green bottle hanging on the wall." });
4039}
4140
4241TEST_CASE (" verse_with_1_bottle" , " [05eadba9-5dbd-401e-a7e8-d17cc9baa8e0]" ) {
4342 auto verses = recite (1 , 1 );
4443 REQUIRE (verses == std::vector<std::string>{
45- " One green bottle hanging on the wall," ,
46- " One green bottle hanging on the wall," ,
47- " And if one green bottle should accidentally fall," ,
48- " There'll be no green bottles hanging on the wall."
49- });
44+ " One green bottle hanging on the wall," ,
45+ " One green bottle hanging on the wall," ,
46+ " And if one green bottle should accidentally fall," ,
47+ " There'll be no green bottles hanging on the wall." });
5048}
5149
5250TEST_CASE (" first_two_verses" , " [a4a28170-83d6-4dc1-bd8b-319b6abb6a80]" ) {
5351 auto verses = recite (10 , 2 );
54- REQUIRE (verses == std::vector<std::string>{
55- " Ten green bottles hanging on the wall," ,
56- " Ten green bottles hanging on the wall," ,
57- " And if one green bottle should accidentally fall," ,
58- " There'll be nine green bottles hanging on the wall." ,
59- " " ,
60- " Nine green bottles hanging on the wall," ,
61- " Nine green bottles hanging on the wall," ,
62- " And if one green bottle should accidentally fall," ,
63- " There'll be eight green bottles hanging on the wall."
64- });
52+ REQUIRE (verses ==
53+ std::vector<std::string>{
54+ " Ten green bottles hanging on the wall," ,
55+ " Ten green bottles hanging on the wall," ,
56+ " And if one green bottle should accidentally fall," ,
57+ " There'll be nine green bottles hanging on the wall." , " " ,
58+ " Nine green bottles hanging on the wall," ,
59+ " Nine green bottles hanging on the wall," ,
60+ " And if one green bottle should accidentally fall," ,
61+ " There'll be eight green bottles hanging on the wall." });
6562}
6663
6764TEST_CASE (" last_three_verses" , " [3185d438-c5ac-4ce6-bcd3-02c9ff1ed8db]" ) {
6865 auto verses = recite (3 , 3 );
6966 REQUIRE (verses == std::vector<std::string>{
70- " Three green bottles hanging on the wall," ,
71- " Three green bottles hanging on the wall," ,
72- " And if one green bottle should accidentally fall," ,
73- " There'll be two green bottles hanging on the wall." ,
74- " " ,
75- " Two green bottles hanging on the wall," ,
76- " Two green bottles hanging on the wall," ,
77- " And if one green bottle should accidentally fall," ,
78- " There'll be one green bottle hanging on the wall." ,
79- " " ,
80- " One green bottle hanging on the wall," ,
81- " One green bottle hanging on the wall," ,
82- " And if one green bottle should accidentally fall," ,
83- " There'll be no green bottles hanging on the wall."
84- });
67+ " Three green bottles hanging on the wall," ,
68+ " Three green bottles hanging on the wall," ,
69+ " And if one green bottle should accidentally fall," ,
70+ " There'll be two green bottles hanging on the wall." ,
71+ " " , " Two green bottles hanging on the wall," ,
72+ " Two green bottles hanging on the wall," ,
73+ " And if one green bottle should accidentally fall," ,
74+ " There'll be one green bottle hanging on the wall." ,
75+ " " , " One green bottle hanging on the wall," ,
76+ " One green bottle hanging on the wall," ,
77+ " And if one green bottle should accidentally fall," ,
78+ " There'll be no green bottles hanging on the wall." });
8579}
8680
8781TEST_CASE (" all_verses" , " [28c1584a-0e51-4b65-9ae2-fbc0bf4bbb28]" ) {
8882 auto verses = recite (10 , 10 );
89- REQUIRE (verses == std::vector<std::string>{
90- " Ten green bottles hanging on the wall, " ,
91- " Ten green bottles hanging on the wall," ,
92- " And if one green bottle should accidentally fall ," ,
93- " There'll be nine green bottles hanging on the wall. " ,
94- " " ,
95- " Nine green bottles hanging on the wall, " ,
96- " Nine green bottles hanging on the wall," ,
97- " And if one green bottle should accidentally fall ," ,
98- " There'll be eight green bottles hanging on the wall. " ,
99- " " ,
100- " Eight green bottles hanging on the wall, " ,
101- " Eight green bottles hanging on the wall," ,
102- " And if one green bottle should accidentally fall ," ,
103- " There'll be seven green bottles hanging on the wall. " ,
104- " " ,
105- " Seven green bottles hanging on the wall, " ,
106- " Seven green bottles hanging on the wall," ,
107- " And if one green bottle should accidentally fall ," ,
108- " There'll be six green bottles hanging on the wall. " ,
109- " " ,
110- " Six green bottles hanging on the wall, " ,
111- " Six green bottles hanging on the wall," ,
112- " And if one green bottle should accidentally fall ," ,
113- " There'll be five green bottles hanging on the wall. " ,
114- " " ,
115- " Five green bottles hanging on the wall, " ,
116- " Five green bottles hanging on the wall," ,
117- " And if one green bottle should accidentally fall ," ,
118- " There'll be four green bottles hanging on the wall. " ,
119- " " ,
120- " Four green bottles hanging on the wall, " ,
121- " Four green bottles hanging on the wall," ,
122- " And if one green bottle should accidentally fall ," ,
123- " There'll be three green bottles hanging on the wall. " ,
124- " " ,
125- " Three green bottles hanging on the wall, " ,
126- " Three green bottles hanging on the wall," ,
127- " And if one green bottle should accidentally fall ," ,
128- " There'll be two green bottles hanging on the wall. " ,
129- " " ,
130- " Two green bottles hanging on the wall, " ,
131- " Two green bottles hanging on the wall," ,
132- " And if one green bottle should accidentally fall ," ,
133- " There'll be one green bottle hanging on the wall. " ,
134- " " ,
135- " One green bottle hanging on the wall, " ,
136- " One green bottle hanging on the wall," ,
137- " And if one green bottle should accidentally fall ," ,
138- " There'll be no green bottles hanging on the wall. "
139- });
83+ REQUIRE (verses ==
84+ std::vector<std::string>{
85+ " Ten green bottles hanging on the wall," ,
86+ " Ten green bottles hanging on the wall ," ,
87+ " And if one green bottle should accidentally fall, " ,
88+ " There'll be nine green bottles hanging on the wall. " ,
89+ " " ,
90+ " Nine green bottles hanging on the wall," ,
91+ " Nine green bottles hanging on the wall ," ,
92+ " And if one green bottle should accidentally fall, " ,
93+ " There'll be eight green bottles hanging on the wall. " ,
94+ " " ,
95+ " Eight green bottles hanging on the wall," ,
96+ " Eight green bottles hanging on the wall ," ,
97+ " And if one green bottle should accidentally fall, " ,
98+ " There'll be seven green bottles hanging on the wall. " ,
99+ " " ,
100+ " Seven green bottles hanging on the wall," ,
101+ " Seven green bottles hanging on the wall ," ,
102+ " And if one green bottle should accidentally fall, " ,
103+ " There'll be six green bottles hanging on the wall. " ,
104+ " " ,
105+ " Six green bottles hanging on the wall," ,
106+ " Six green bottles hanging on the wall ," ,
107+ " And if one green bottle should accidentally fall, " ,
108+ " There'll be five green bottles hanging on the wall. " ,
109+ " " ,
110+ " Five green bottles hanging on the wall," ,
111+ " Five green bottles hanging on the wall ," ,
112+ " And if one green bottle should accidentally fall, " ,
113+ " There'll be four green bottles hanging on the wall. " ,
114+ " " ,
115+ " Four green bottles hanging on the wall," ,
116+ " Four green bottles hanging on the wall ," ,
117+ " And if one green bottle should accidentally fall, " ,
118+ " There'll be three green bottles hanging on the wall. " ,
119+ " " ,
120+ " Three green bottles hanging on the wall," ,
121+ " Three green bottles hanging on the wall ," ,
122+ " And if one green bottle should accidentally fall, " ,
123+ " There'll be two green bottles hanging on the wall. " ,
124+ " " ,
125+ " Two green bottles hanging on the wall," ,
126+ " Two green bottles hanging on the wall ," ,
127+ " And if one green bottle should accidentally fall, " ,
128+ " There'll be one green bottle hanging on the wall. " ,
129+ " " ,
130+ " One green bottle hanging on the wall," ,
131+ " One green bottle hanging on the wall ," ,
132+ " And if one green bottle should accidentally fall, " ,
133+ " There'll be no green bottles hanging on the wall. " });
140134}
141135
142136#endif
0 commit comments