Skip to content

Commit 8532f91

Browse files
authored
Reformat expected lines in food-chain (#353)
1 parent 81353fc commit 8532f91

File tree

1 file changed

+116
-11
lines changed

1 file changed

+116
-11
lines changed
Lines changed: 116 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,165 @@
1-
21
Execute (fly):
32
let g:endVerse = 1
43
let g:startVerse = 1
5-
let g:expected = ['I know an old lady who swallowed a fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.']
4+
let g:expected = [
5+
\ "I know an old lady who swallowed a fly.",
6+
\ "I don't know why she swallowed the fly. Perhaps she'll die."]
67
AssertEqual g:expected, Recite(g:endVerse, g:startVerse)
78

89
Execute (spider):
910
let g:endVerse = 2
1011
let g:startVerse = 2
11-
let g:expected = ['I know an old lady who swallowed a spider.', 'It wriggled and jiggled and tickled inside her.', 'She swallowed the spider to catch the fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.']
12+
let g:expected = [
13+
\ "I know an old lady who swallowed a spider.",
14+
\ "It wriggled and jiggled and tickled inside her.",
15+
\ "She swallowed the spider to catch the fly.",
16+
\ "I don't know why she swallowed the fly. Perhaps she'll die."]
1217
AssertEqual g:expected, Recite(g:endVerse, g:startVerse)
1318

1419
Execute (bird):
1520
let g:endVerse = 3
1621
let g:startVerse = 3
17-
let g:expected = ['I know an old lady who swallowed a bird.', 'How absurd to swallow a bird!', 'She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.', 'She swallowed the spider to catch the fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.']
22+
let g:expected = [
23+
\ "I know an old lady who swallowed a bird.",
24+
\ "How absurd to swallow a bird!",
25+
\ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.",
26+
\ "She swallowed the spider to catch the fly.",
27+
\ "I don't know why she swallowed the fly. Perhaps she'll die."]
1828
AssertEqual g:expected, Recite(g:endVerse, g:startVerse)
1929

2030
Execute (cat):
2131
let g:endVerse = 4
2232
let g:startVerse = 4
23-
let g:expected = ['I know an old lady who swallowed a cat.', 'Imagine that, to swallow a cat!', 'She swallowed the cat to catch the bird.', 'She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.', 'She swallowed the spider to catch the fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.']
33+
let g:expected = [
34+
\ "I know an old lady who swallowed a cat.",
35+
\ "Imagine that, to swallow a cat!",
36+
\ "She swallowed the cat to catch the bird.",
37+
\ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.",
38+
\ "She swallowed the spider to catch the fly.",
39+
\ "I don't know why she swallowed the fly. Perhaps she'll die."]
2440
AssertEqual g:expected, Recite(g:endVerse, g:startVerse)
2541

2642
Execute (dog):
2743
let g:endVerse = 5
2844
let g:startVerse = 5
29-
let g:expected = ['I know an old lady who swallowed a dog.', 'What a hog, to swallow a dog!', 'She swallowed the dog to catch the cat.', 'She swallowed the cat to catch the bird.', 'She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.', 'She swallowed the spider to catch the fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.']
45+
let g:expected = [
46+
\ "I know an old lady who swallowed a dog.",
47+
\ "What a hog, to swallow a dog!",
48+
\ "She swallowed the dog to catch the cat.",
49+
\ "She swallowed the cat to catch the bird.",
50+
\ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.",
51+
\ "She swallowed the spider to catch the fly.",
52+
\ "I don't know why she swallowed the fly. Perhaps she'll die."]
3053
AssertEqual g:expected, Recite(g:endVerse, g:startVerse)
3154

3255
Execute (goat):
3356
let g:endVerse = 6
3457
let g:startVerse = 6
35-
let g:expected = ['I know an old lady who swallowed a goat.', 'Just opened her throat and swallowed a goat!', 'She swallowed the goat to catch the dog.', 'She swallowed the dog to catch the cat.', 'She swallowed the cat to catch the bird.', 'She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.', 'She swallowed the spider to catch the fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.']
58+
let g:expected = [
59+
\ "I know an old lady who swallowed a goat.",
60+
\ "Just opened her throat and swallowed a goat!",
61+
\ "She swallowed the goat to catch the dog.",
62+
\ "She swallowed the dog to catch the cat.",
63+
\ "She swallowed the cat to catch the bird.",
64+
\ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.",
65+
\ "She swallowed the spider to catch the fly.",
66+
\ "I don't know why she swallowed the fly. Perhaps she'll die."]
3667
AssertEqual g:expected, Recite(g:endVerse, g:startVerse)
3768

3869
Execute (cow):
3970
let g:endVerse = 7
4071
let g:startVerse = 7
41-
let g:expected = ['I know an old lady who swallowed a cow.', 'I don''t know how she swallowed a cow!', 'She swallowed the cow to catch the goat.', 'She swallowed the goat to catch the dog.', 'She swallowed the dog to catch the cat.', 'She swallowed the cat to catch the bird.', 'She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.', 'She swallowed the spider to catch the fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.']
72+
let g:expected = [
73+
\ "I know an old lady who swallowed a cow.",
74+
\ "I don't know how she swallowed a cow!",
75+
\ "She swallowed the cow to catch the goat.",
76+
\ "She swallowed the goat to catch the dog.",
77+
\ "She swallowed the dog to catch the cat.",
78+
\ "She swallowed the cat to catch the bird.",
79+
\ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.",
80+
\ "She swallowed the spider to catch the fly.",
81+
\ "I don't know why she swallowed the fly. Perhaps she'll die."]
4282
AssertEqual g:expected, Recite(g:endVerse, g:startVerse)
4383

4484
Execute (horse):
4585
let g:endVerse = 8
4686
let g:startVerse = 8
47-
let g:expected = ['I know an old lady who swallowed a horse.', 'She''s dead, of course!']
87+
let g:expected = [
88+
\ "I know an old lady who swallowed a horse.",
89+
\ "She's dead, of course!"]
4890
AssertEqual g:expected, Recite(g:endVerse, g:startVerse)
4991

5092
Execute (multiple verses):
5193
let g:endVerse = 3
5294
let g:startVerse = 1
53-
let g:expected = ['I know an old lady who swallowed a fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.', '', 'I know an old lady who swallowed a spider.', 'It wriggled and jiggled and tickled inside her.', 'She swallowed the spider to catch the fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.', '', 'I know an old lady who swallowed a bird.', 'How absurd to swallow a bird!', 'She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.', 'She swallowed the spider to catch the fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.']
95+
let g:expected = [
96+
\ "I know an old lady who swallowed a fly.",
97+
\ "I don't know why she swallowed the fly. Perhaps she'll die.",
98+
\ "",
99+
\ "I know an old lady who swallowed a spider.",
100+
\ "It wriggled and jiggled and tickled inside her.",
101+
\ "She swallowed the spider to catch the fly.",
102+
\ "I don't know why she swallowed the fly. Perhaps she'll die.",
103+
\ "",
104+
\ "I know an old lady who swallowed a bird.",
105+
\ "How absurd to swallow a bird!",
106+
\ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.",
107+
\ "She swallowed the spider to catch the fly.",
108+
\ "I don't know why she swallowed the fly. Perhaps she'll die."]
54109
AssertEqual g:expected, Recite(g:endVerse, g:startVerse)
55110

56111
Execute (full song):
57112
let g:endVerse = 8
58113
let g:startVerse = 1
59-
let g:expected = ['I know an old lady who swallowed a fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.', '', 'I know an old lady who swallowed a spider.', 'It wriggled and jiggled and tickled inside her.', 'She swallowed the spider to catch the fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.', '', 'I know an old lady who swallowed a bird.', 'How absurd to swallow a bird!', 'She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.', 'She swallowed the spider to catch the fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.', '', 'I know an old lady who swallowed a cat.', 'Imagine that, to swallow a cat!', 'She swallowed the cat to catch the bird.', 'She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.', 'She swallowed the spider to catch the fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.', '', 'I know an old lady who swallowed a dog.', 'What a hog, to swallow a dog!', 'She swallowed the dog to catch the cat.', 'She swallowed the cat to catch the bird.', 'She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.', 'She swallowed the spider to catch the fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.', '', 'I know an old lady who swallowed a goat.', 'Just opened her throat and swallowed a goat!', 'She swallowed the goat to catch the dog.', 'She swallowed the dog to catch the cat.', 'She swallowed the cat to catch the bird.', 'She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.', 'She swallowed the spider to catch the fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.', '', 'I know an old lady who swallowed a cow.', 'I don''t know how she swallowed a cow!', 'She swallowed the cow to catch the goat.', 'She swallowed the goat to catch the dog.', 'She swallowed the dog to catch the cat.', 'She swallowed the cat to catch the bird.', 'She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.', 'She swallowed the spider to catch the fly.', 'I don''t know why she swallowed the fly. Perhaps she''ll die.', '', 'I know an old lady who swallowed a horse.', 'She''s dead, of course!']
114+
let g:expected = [
115+
\ "I know an old lady who swallowed a fly.",
116+
\ "I don't know why she swallowed the fly. Perhaps she'll die.",
117+
\ "",
118+
\ "I know an old lady who swallowed a spider.",
119+
\ "It wriggled and jiggled and tickled inside her.",
120+
\ "She swallowed the spider to catch the fly.",
121+
\ "I don't know why she swallowed the fly. Perhaps she'll die.",
122+
\ "",
123+
\ "I know an old lady who swallowed a bird.",
124+
\ "How absurd to swallow a bird!",
125+
\ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.",
126+
\ "She swallowed the spider to catch the fly.",
127+
\ "I don't know why she swallowed the fly. Perhaps she'll die.",
128+
\ "",
129+
\ "I know an old lady who swallowed a cat.",
130+
\ "Imagine that, to swallow a cat!",
131+
\ "She swallowed the cat to catch the bird.",
132+
\ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.",
133+
\ "She swallowed the spider to catch the fly.",
134+
\ "I don't know why she swallowed the fly. Perhaps she'll die.",
135+
\ "",
136+
\ "I know an old lady who swallowed a dog.",
137+
\ "What a hog, to swallow a dog!",
138+
\ "She swallowed the dog to catch the cat.",
139+
\ "She swallowed the cat to catch the bird.",
140+
\ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.",
141+
\ "She swallowed the spider to catch the fly.",
142+
\ "I don't know why she swallowed the fly. Perhaps she'll die.",
143+
\ "",
144+
\ "I know an old lady who swallowed a goat.",
145+
\ "Just opened her throat and swallowed a goat!",
146+
\ "She swallowed the goat to catch the dog.",
147+
\ "She swallowed the dog to catch the cat.",
148+
\ "She swallowed the cat to catch the bird.",
149+
\ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.",
150+
\ "She swallowed the spider to catch the fly.",
151+
\ "I don't know why she swallowed the fly. Perhaps she'll die.",
152+
\ "",
153+
\ "I know an old lady who swallowed a cow.",
154+
\ "I don't know how she swallowed a cow!",
155+
\ "She swallowed the cow to catch the goat.",
156+
\ "She swallowed the goat to catch the dog.",
157+
\ "She swallowed the dog to catch the cat.",
158+
\ "She swallowed the cat to catch the bird.",
159+
\ "She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.",
160+
\ "She swallowed the spider to catch the fly.",
161+
\ "I don't know why she swallowed the fly. Perhaps she'll die.",
162+
\ "",
163+
\ "I know an old lady who swallowed a horse.",
164+
\ "She's dead, of course!"]
60165
AssertEqual g:expected, Recite(g:endVerse, g:startVerse)

0 commit comments

Comments
 (0)