11module main
22
33fn test_verse__single_verse__first_generic_verse () {
4- expected :=
5- ("Ten green bottles hanging on the wall,
4+ expected := ("Ten green bottles hanging on the wall,
65Ten green bottles hanging on the wall,
76And if one green bottle should accidentally fall,
87There'll be nine green bottles hanging on the wall." )
98 assert recite (10 , 1 ) == expected
109}
1110
1211fn test_verse__single_verse__last_generic_verse () {
13- expected :=
14- ("Three green bottles hanging on the wall,
12+ expected := ("Three green bottles hanging on the wall,
1513Three green bottles hanging on the wall,
1614And if one green bottle should accidentally fall,
1715There'll be two green bottles hanging on the wall." )
1816 assert recite (3 , 1 ) == expected
1917}
2018
2119fn test_verse__single_verse__verse_with_2_bottles () {
22- expected :=
23- ("Two green bottles hanging on the wall,
20+ expected := ("Two green bottles hanging on the wall,
2421Two green bottles hanging on the wall,
2522And if one green bottle should accidentally fall,
2623There'll be one green bottle hanging on the wall." )
2724 assert recite (2 , 1 ) == expected
2825}
2926
3027fn test_verse__single_verse__verse_with_1_bottle () {
31- expected :=
32- ("One green bottle hanging on the wall,
28+ expected := ("One green bottle hanging on the wall,
3329One green bottle hanging on the wall,
3430And if one green bottle should accidentally fall,
3531There'll be no green bottles hanging on the wall." )
3632 assert recite (1 , 1 ) == expected
3733}
3834
3935fn test_lyrics__multiple_verses__first_two_verses () {
40- expected :=
41- ("Ten green bottles hanging on the wall,
36+ expected := ("Ten green bottles hanging on the wall,
4237Ten green bottles hanging on the wall,
4338And if one green bottle should accidentally fall,
4439There'll be nine green bottles hanging on the wall.
@@ -51,8 +46,7 @@ There'll be eight green bottles hanging on the wall.")
5146}
5247
5348fn test_lyrics__multiple_verses__last_three_verses () {
54- expected :=
55- ("Three green bottles hanging on the wall,
49+ expected := ("Three green bottles hanging on the wall,
5650Three green bottles hanging on the wall,
5751And if one green bottle should accidentally fall,
5852There'll be two green bottles hanging on the wall.
@@ -70,8 +64,7 @@ There'll be no green bottles hanging on the wall.")
7064}
7165
7266fn test_lyrics__multiple_verses__all_verses () {
73- expected :=
74- ("Ten green bottles hanging on the wall,
67+ expected := ("Ten green bottles hanging on the wall,
7568Ten green bottles hanging on the wall,
7669And if one green bottle should accidentally fall,
7770There'll be nine green bottles hanging on the wall.
0 commit comments