@@ -8,7 +8,7 @@ public class FoodChainTest
88 public void Fly ( )
99 {
1010 var expected =
11- "I know an old lady who swallowed a fly.\n " +
11+ "I know an old lady who swallowed a fly.\n " +
1212 "I don't know why she swallowed the fly. Perhaps she'll die." ;
1313 Assert . Equal ( expected , FoodChain . Verse ( 1 ) ) ;
1414 }
@@ -17,9 +17,9 @@ public void Fly()
1717 public void Spider ( )
1818 {
1919 var expected =
20- "I know an old lady who swallowed a spider.\n " +
21- "It wriggled and jiggled and tickled inside her.\n " +
22- "She swallowed the spider to catch the fly.\n " +
20+ "I know an old lady who swallowed a spider.\n " +
21+ "It wriggled and jiggled and tickled inside her.\n " +
22+ "She swallowed the spider to catch the fly.\n " +
2323 "I don't know why she swallowed the fly. Perhaps she'll die." ;
2424 Assert . Equal ( expected , FoodChain . Verse ( 2 ) ) ;
2525 }
@@ -28,10 +28,10 @@ public void Spider()
2828 public void Bird ( )
2929 {
3030 var expected =
31- "I know an old lady who swallowed a bird.\n " +
32- "How absurd to swallow a bird!\n " +
33- "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
34- "She swallowed the spider to catch the fly.\n " +
31+ "I know an old lady who swallowed a bird.\n " +
32+ "How absurd to swallow a bird!\n " +
33+ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
34+ "She swallowed the spider to catch the fly.\n " +
3535 "I don't know why she swallowed the fly. Perhaps she'll die." ;
3636 Assert . Equal ( expected , FoodChain . Verse ( 3 ) ) ;
3737 }
@@ -40,11 +40,11 @@ public void Bird()
4040 public void Cat ( )
4141 {
4242 var expected =
43- "I know an old lady who swallowed a cat.\n " +
44- "Imagine that, to swallow a cat!\n " +
45- "She swallowed the cat to catch the bird.\n " +
46- "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
47- "She swallowed the spider to catch the fly.\n " +
43+ "I know an old lady who swallowed a cat.\n " +
44+ "Imagine that, to swallow a cat!\n " +
45+ "She swallowed the cat to catch the bird.\n " +
46+ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
47+ "She swallowed the spider to catch the fly.\n " +
4848 "I don't know why she swallowed the fly. Perhaps she'll die." ;
4949 Assert . Equal ( expected , FoodChain . Verse ( 4 ) ) ;
5050 }
@@ -53,12 +53,12 @@ public void Cat()
5353 public void Dog ( )
5454 {
5555 var expected =
56- "I know an old lady who swallowed a dog.\n " +
57- "What a hog, to swallow a dog!\n " +
58- "She swallowed the dog to catch the cat.\n " +
59- "She swallowed the cat to catch the bird.\n " +
60- "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
61- "She swallowed the spider to catch the fly.\n " +
56+ "I know an old lady who swallowed a dog.\n " +
57+ "What a hog, to swallow a dog!\n " +
58+ "She swallowed the dog to catch the cat.\n " +
59+ "She swallowed the cat to catch the bird.\n " +
60+ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
61+ "She swallowed the spider to catch the fly.\n " +
6262 "I don't know why she swallowed the fly. Perhaps she'll die." ;
6363 Assert . Equal ( expected , FoodChain . Verse ( 5 ) ) ;
6464 }
@@ -67,13 +67,13 @@ public void Dog()
6767 public void Goat ( )
6868 {
6969 var expected =
70- "I know an old lady who swallowed a goat.\n " +
71- "Just opened her throat and swallowed a goat!\n " +
72- "She swallowed the goat to catch the dog.\n " +
73- "She swallowed the dog to catch the cat.\n " +
74- "She swallowed the cat to catch the bird.\n " +
75- "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
76- "She swallowed the spider to catch the fly.\n " +
70+ "I know an old lady who swallowed a goat.\n " +
71+ "Just opened her throat and swallowed a goat!\n " +
72+ "She swallowed the goat to catch the dog.\n " +
73+ "She swallowed the dog to catch the cat.\n " +
74+ "She swallowed the cat to catch the bird.\n " +
75+ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
76+ "She swallowed the spider to catch the fly.\n " +
7777 "I don't know why she swallowed the fly. Perhaps she'll die." ;
7878 Assert . Equal ( expected , FoodChain . Verse ( 6 ) ) ;
7979 }
@@ -82,14 +82,14 @@ public void Goat()
8282 public void Cow ( )
8383 {
8484 var expected =
85- "I know an old lady who swallowed a cow.\n " +
86- "I don't know how she swallowed a cow!\n " +
87- "She swallowed the cow to catch the goat.\n " +
88- "She swallowed the goat to catch the dog.\n " +
89- "She swallowed the dog to catch the cat.\n " +
90- "She swallowed the cat to catch the bird.\n " +
91- "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
92- "She swallowed the spider to catch the fly.\n " +
85+ "I know an old lady who swallowed a cow.\n " +
86+ "I don't know how she swallowed a cow!\n " +
87+ "She swallowed the cow to catch the goat.\n " +
88+ "She swallowed the goat to catch the dog.\n " +
89+ "She swallowed the dog to catch the cat.\n " +
90+ "She swallowed the cat to catch the bird.\n " +
91+ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
92+ "She swallowed the spider to catch the fly.\n " +
9393 "I don't know why she swallowed the fly. Perhaps she'll die." ;
9494 Assert . Equal ( expected , FoodChain . Verse ( 7 ) ) ;
9595 }
@@ -98,7 +98,7 @@ public void Cow()
9898 public void Horse ( )
9999 {
100100 var expected =
101- "I know an old lady who swallowed a horse.\n " +
101+ "I know an old lady who swallowed a horse.\n " +
102102 "She's dead, of course!" ;
103103 Assert . Equal ( expected , FoodChain . Verse ( 8 ) ) ;
104104 }
@@ -107,18 +107,18 @@ public void Horse()
107107 public void Multiple_verses ( )
108108 {
109109 var expected =
110- "I know an old lady who swallowed a fly.\n " +
111- "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
112- "\n " +
113- "I know an old lady who swallowed a spider.\n " +
114- "It wriggled and jiggled and tickled inside her.\n " +
115- "She swallowed the spider to catch the fly.\n " +
116- "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
117- "\n " +
118- "I know an old lady who swallowed a bird.\n " +
119- "How absurd to swallow a bird!\n " +
120- "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
121- "She swallowed the spider to catch the fly.\n " +
110+ "I know an old lady who swallowed a fly.\n " +
111+ "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
112+ "\n " +
113+ "I know an old lady who swallowed a spider.\n " +
114+ "It wriggled and jiggled and tickled inside her.\n " +
115+ "She swallowed the spider to catch the fly.\n " +
116+ "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
117+ "\n " +
118+ "I know an old lady who swallowed a bird.\n " +
119+ "How absurd to swallow a bird!\n " +
120+ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
121+ "She swallowed the spider to catch the fly.\n " +
122122 "I don't know why she swallowed the fly. Perhaps she'll die." ;
123123 Assert . Equal ( expected , FoodChain . Verse ( 1 , 3 ) ) ;
124124 }
@@ -127,55 +127,55 @@ public void Multiple_verses()
127127 public void Full_song ( )
128128 {
129129 var expected =
130- "I know an old lady who swallowed a fly.\n " +
131- "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
132- "\n " +
133- "I know an old lady who swallowed a spider.\n " +
134- "It wriggled and jiggled and tickled inside her.\n " +
135- "She swallowed the spider to catch the fly.\n " +
136- "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
137- "\n " +
138- "I know an old lady who swallowed a bird.\n " +
139- "How absurd to swallow a bird!\n " +
140- "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
141- "She swallowed the spider to catch the fly.\n " +
142- "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
143- "\n " +
144- "I know an old lady who swallowed a cat.\n " +
145- "Imagine that, to swallow a cat!\n " +
146- "She swallowed the cat to catch the bird.\n " +
147- "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
148- "She swallowed the spider to catch the fly.\n " +
149- "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
150- "\n " +
151- "I know an old lady who swallowed a dog.\n " +
152- "What a hog, to swallow a dog!\n " +
153- "She swallowed the dog to catch the cat.\n " +
154- "She swallowed the cat to catch the bird.\n " +
155- "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
156- "She swallowed the spider to catch the fly.\n " +
157- "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
158- "\n " +
159- "I know an old lady who swallowed a goat.\n " +
160- "Just opened her throat and swallowed a goat!\n " +
161- "She swallowed the goat to catch the dog.\n " +
162- "She swallowed the dog to catch the cat.\n " +
163- "She swallowed the cat to catch the bird.\n " +
164- "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
165- "She swallowed the spider to catch the fly.\n " +
166- "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
167- "\n " +
168- "I know an old lady who swallowed a cow.\n " +
169- "I don't know how she swallowed a cow!\n " +
170- "She swallowed the cow to catch the goat.\n " +
171- "She swallowed the goat to catch the dog.\n " +
172- "She swallowed the dog to catch the cat.\n " +
173- "She swallowed the cat to catch the bird.\n " +
174- "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
175- "She swallowed the spider to catch the fly.\n " +
176- "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
177- "\n " +
178- "I know an old lady who swallowed a horse.\n " +
130+ "I know an old lady who swallowed a fly.\n " +
131+ "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
132+ "\n " +
133+ "I know an old lady who swallowed a spider.\n " +
134+ "It wriggled and jiggled and tickled inside her.\n " +
135+ "She swallowed the spider to catch the fly.\n " +
136+ "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
137+ "\n " +
138+ "I know an old lady who swallowed a bird.\n " +
139+ "How absurd to swallow a bird!\n " +
140+ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
141+ "She swallowed the spider to catch the fly.\n " +
142+ "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
143+ "\n " +
144+ "I know an old lady who swallowed a cat.\n " +
145+ "Imagine that, to swallow a cat!\n " +
146+ "She swallowed the cat to catch the bird.\n " +
147+ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
148+ "She swallowed the spider to catch the fly.\n " +
149+ "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
150+ "\n " +
151+ "I know an old lady who swallowed a dog.\n " +
152+ "What a hog, to swallow a dog!\n " +
153+ "She swallowed the dog to catch the cat.\n " +
154+ "She swallowed the cat to catch the bird.\n " +
155+ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
156+ "She swallowed the spider to catch the fly.\n " +
157+ "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
158+ "\n " +
159+ "I know an old lady who swallowed a goat.\n " +
160+ "Just opened her throat and swallowed a goat!\n " +
161+ "She swallowed the goat to catch the dog.\n " +
162+ "She swallowed the dog to catch the cat.\n " +
163+ "She swallowed the cat to catch the bird.\n " +
164+ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
165+ "She swallowed the spider to catch the fly.\n " +
166+ "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
167+ "\n " +
168+ "I know an old lady who swallowed a cow.\n " +
169+ "I don't know how she swallowed a cow!\n " +
170+ "She swallowed the cow to catch the goat.\n " +
171+ "She swallowed the goat to catch the dog.\n " +
172+ "She swallowed the dog to catch the cat.\n " +
173+ "She swallowed the cat to catch the bird.\n " +
174+ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.\n " +
175+ "She swallowed the spider to catch the fly.\n " +
176+ "I don't know why she swallowed the fly. Perhaps she'll die.\n " +
177+ "\n " +
178+ "I know an old lady who swallowed a horse.\n " +
179179 "She's dead, of course!" ;
180180 Assert . Equal ( expected , FoodChain . Verse ( 1 , 8 ) ) ;
181181 }
0 commit comments