1 ! Copyright (C) 2011 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: 99-bottles io.streams.string tools.test ;
7 """99 bottles of beer on the wall, 99 bottles of beer.
8 Take one down, pass it around, 98 bottles of beer on the wall.
10 98 bottles of beer on the wall, 98 bottles of beer.
11 Take one down, pass it around, 97 bottles of beer on the wall.
13 97 bottles of beer on the wall, 97 bottles of beer.
14 Take one down, pass it around, 96 bottles of beer on the wall.
16 96 bottles of beer on the wall, 96 bottles of beer.
17 Take one down, pass it around, 95 bottles of beer on the wall.
19 95 bottles of beer on the wall, 95 bottles of beer.
20 Take one down, pass it around, 94 bottles of beer on the wall.
22 94 bottles of beer on the wall, 94 bottles of beer.
23 Take one down, pass it around, 93 bottles of beer on the wall.
25 93 bottles of beer on the wall, 93 bottles of beer.
26 Take one down, pass it around, 92 bottles of beer on the wall.
28 92 bottles of beer on the wall, 92 bottles of beer.
29 Take one down, pass it around, 91 bottles of beer on the wall.
31 91 bottles of beer on the wall, 91 bottles of beer.
32 Take one down, pass it around, 90 bottles of beer on the wall.
34 90 bottles of beer on the wall, 90 bottles of beer.
35 Take one down, pass it around, 89 bottles of beer on the wall.
37 89 bottles of beer on the wall, 89 bottles of beer.
38 Take one down, pass it around, 88 bottles of beer on the wall.
40 88 bottles of beer on the wall, 88 bottles of beer.
41 Take one down, pass it around, 87 bottles of beer on the wall.
43 87 bottles of beer on the wall, 87 bottles of beer.
44 Take one down, pass it around, 86 bottles of beer on the wall.
46 86 bottles of beer on the wall, 86 bottles of beer.
47 Take one down, pass it around, 85 bottles of beer on the wall.
49 85 bottles of beer on the wall, 85 bottles of beer.
50 Take one down, pass it around, 84 bottles of beer on the wall.
52 84 bottles of beer on the wall, 84 bottles of beer.
53 Take one down, pass it around, 83 bottles of beer on the wall.
55 83 bottles of beer on the wall, 83 bottles of beer.
56 Take one down, pass it around, 82 bottles of beer on the wall.
58 82 bottles of beer on the wall, 82 bottles of beer.
59 Take one down, pass it around, 81 bottles of beer on the wall.
61 81 bottles of beer on the wall, 81 bottles of beer.
62 Take one down, pass it around, 80 bottles of beer on the wall.
64 80 bottles of beer on the wall, 80 bottles of beer.
65 Take one down, pass it around, 79 bottles of beer on the wall.
67 79 bottles of beer on the wall, 79 bottles of beer.
68 Take one down, pass it around, 78 bottles of beer on the wall.
70 78 bottles of beer on the wall, 78 bottles of beer.
71 Take one down, pass it around, 77 bottles of beer on the wall.
73 77 bottles of beer on the wall, 77 bottles of beer.
74 Take one down, pass it around, 76 bottles of beer on the wall.
76 76 bottles of beer on the wall, 76 bottles of beer.
77 Take one down, pass it around, 75 bottles of beer on the wall.
79 75 bottles of beer on the wall, 75 bottles of beer.
80 Take one down, pass it around, 74 bottles of beer on the wall.
82 74 bottles of beer on the wall, 74 bottles of beer.
83 Take one down, pass it around, 73 bottles of beer on the wall.
85 73 bottles of beer on the wall, 73 bottles of beer.
86 Take one down, pass it around, 72 bottles of beer on the wall.
88 72 bottles of beer on the wall, 72 bottles of beer.
89 Take one down, pass it around, 71 bottles of beer on the wall.
91 71 bottles of beer on the wall, 71 bottles of beer.
92 Take one down, pass it around, 70 bottles of beer on the wall.
94 70 bottles of beer on the wall, 70 bottles of beer.
95 Take one down, pass it around, 69 bottles of beer on the wall.
97 69 bottles of beer on the wall, 69 bottles of beer.
98 Take one down, pass it around, 68 bottles of beer on the wall.
100 68 bottles of beer on the wall, 68 bottles of beer.
101 Take one down, pass it around, 67 bottles of beer on the wall.
103 67 bottles of beer on the wall, 67 bottles of beer.
104 Take one down, pass it around, 66 bottles of beer on the wall.
106 66 bottles of beer on the wall, 66 bottles of beer.
107 Take one down, pass it around, 65 bottles of beer on the wall.
109 65 bottles of beer on the wall, 65 bottles of beer.
110 Take one down, pass it around, 64 bottles of beer on the wall.
112 64 bottles of beer on the wall, 64 bottles of beer.
113 Take one down, pass it around, 63 bottles of beer on the wall.
115 63 bottles of beer on the wall, 63 bottles of beer.
116 Take one down, pass it around, 62 bottles of beer on the wall.
118 62 bottles of beer on the wall, 62 bottles of beer.
119 Take one down, pass it around, 61 bottles of beer on the wall.
121 61 bottles of beer on the wall, 61 bottles of beer.
122 Take one down, pass it around, 60 bottles of beer on the wall.
124 60 bottles of beer on the wall, 60 bottles of beer.
125 Take one down, pass it around, 59 bottles of beer on the wall.
127 59 bottles of beer on the wall, 59 bottles of beer.
128 Take one down, pass it around, 58 bottles of beer on the wall.
130 58 bottles of beer on the wall, 58 bottles of beer.
131 Take one down, pass it around, 57 bottles of beer on the wall.
133 57 bottles of beer on the wall, 57 bottles of beer.
134 Take one down, pass it around, 56 bottles of beer on the wall.
136 56 bottles of beer on the wall, 56 bottles of beer.
137 Take one down, pass it around, 55 bottles of beer on the wall.
139 55 bottles of beer on the wall, 55 bottles of beer.
140 Take one down, pass it around, 54 bottles of beer on the wall.
142 54 bottles of beer on the wall, 54 bottles of beer.
143 Take one down, pass it around, 53 bottles of beer on the wall.
145 53 bottles of beer on the wall, 53 bottles of beer.
146 Take one down, pass it around, 52 bottles of beer on the wall.
148 52 bottles of beer on the wall, 52 bottles of beer.
149 Take one down, pass it around, 51 bottles of beer on the wall.
151 51 bottles of beer on the wall, 51 bottles of beer.
152 Take one down, pass it around, 50 bottles of beer on the wall.
154 50 bottles of beer on the wall, 50 bottles of beer.
155 Take one down, pass it around, 49 bottles of beer on the wall.
157 49 bottles of beer on the wall, 49 bottles of beer.
158 Take one down, pass it around, 48 bottles of beer on the wall.
160 48 bottles of beer on the wall, 48 bottles of beer.
161 Take one down, pass it around, 47 bottles of beer on the wall.
163 47 bottles of beer on the wall, 47 bottles of beer.
164 Take one down, pass it around, 46 bottles of beer on the wall.
166 46 bottles of beer on the wall, 46 bottles of beer.
167 Take one down, pass it around, 45 bottles of beer on the wall.
169 45 bottles of beer on the wall, 45 bottles of beer.
170 Take one down, pass it around, 44 bottles of beer on the wall.
172 44 bottles of beer on the wall, 44 bottles of beer.
173 Take one down, pass it around, 43 bottles of beer on the wall.
175 43 bottles of beer on the wall, 43 bottles of beer.
176 Take one down, pass it around, 42 bottles of beer on the wall.
178 42 bottles of beer on the wall, 42 bottles of beer.
179 Take one down, pass it around, 41 bottles of beer on the wall.
181 41 bottles of beer on the wall, 41 bottles of beer.
182 Take one down, pass it around, 40 bottles of beer on the wall.
184 40 bottles of beer on the wall, 40 bottles of beer.
185 Take one down, pass it around, 39 bottles of beer on the wall.
187 39 bottles of beer on the wall, 39 bottles of beer.
188 Take one down, pass it around, 38 bottles of beer on the wall.
190 38 bottles of beer on the wall, 38 bottles of beer.
191 Take one down, pass it around, 37 bottles of beer on the wall.
193 37 bottles of beer on the wall, 37 bottles of beer.
194 Take one down, pass it around, 36 bottles of beer on the wall.
196 36 bottles of beer on the wall, 36 bottles of beer.
197 Take one down, pass it around, 35 bottles of beer on the wall.
199 35 bottles of beer on the wall, 35 bottles of beer.
200 Take one down, pass it around, 34 bottles of beer on the wall.
202 34 bottles of beer on the wall, 34 bottles of beer.
203 Take one down, pass it around, 33 bottles of beer on the wall.
205 33 bottles of beer on the wall, 33 bottles of beer.
206 Take one down, pass it around, 32 bottles of beer on the wall.
208 32 bottles of beer on the wall, 32 bottles of beer.
209 Take one down, pass it around, 31 bottles of beer on the wall.
211 31 bottles of beer on the wall, 31 bottles of beer.
212 Take one down, pass it around, 30 bottles of beer on the wall.
214 30 bottles of beer on the wall, 30 bottles of beer.
215 Take one down, pass it around, 29 bottles of beer on the wall.
217 29 bottles of beer on the wall, 29 bottles of beer.
218 Take one down, pass it around, 28 bottles of beer on the wall.
220 28 bottles of beer on the wall, 28 bottles of beer.
221 Take one down, pass it around, 27 bottles of beer on the wall.
223 27 bottles of beer on the wall, 27 bottles of beer.
224 Take one down, pass it around, 26 bottles of beer on the wall.
226 26 bottles of beer on the wall, 26 bottles of beer.
227 Take one down, pass it around, 25 bottles of beer on the wall.
229 25 bottles of beer on the wall, 25 bottles of beer.
230 Take one down, pass it around, 24 bottles of beer on the wall.
232 24 bottles of beer on the wall, 24 bottles of beer.
233 Take one down, pass it around, 23 bottles of beer on the wall.
235 23 bottles of beer on the wall, 23 bottles of beer.
236 Take one down, pass it around, 22 bottles of beer on the wall.
238 22 bottles of beer on the wall, 22 bottles of beer.
239 Take one down, pass it around, 21 bottles of beer on the wall.
241 21 bottles of beer on the wall, 21 bottles of beer.
242 Take one down, pass it around, 20 bottles of beer on the wall.
244 20 bottles of beer on the wall, 20 bottles of beer.
245 Take one down, pass it around, 19 bottles of beer on the wall.
247 19 bottles of beer on the wall, 19 bottles of beer.
248 Take one down, pass it around, 18 bottles of beer on the wall.
250 18 bottles of beer on the wall, 18 bottles of beer.
251 Take one down, pass it around, 17 bottles of beer on the wall.
253 17 bottles of beer on the wall, 17 bottles of beer.
254 Take one down, pass it around, 16 bottles of beer on the wall.
256 16 bottles of beer on the wall, 16 bottles of beer.
257 Take one down, pass it around, 15 bottles of beer on the wall.
259 15 bottles of beer on the wall, 15 bottles of beer.
260 Take one down, pass it around, 14 bottles of beer on the wall.
262 14 bottles of beer on the wall, 14 bottles of beer.
263 Take one down, pass it around, 13 bottles of beer on the wall.
265 13 bottles of beer on the wall, 13 bottles of beer.
266 Take one down, pass it around, 12 bottles of beer on the wall.
268 12 bottles of beer on the wall, 12 bottles of beer.
269 Take one down, pass it around, 11 bottles of beer on the wall.
271 11 bottles of beer on the wall, 11 bottles of beer.
272 Take one down, pass it around, 10 bottles of beer on the wall.
274 10 bottles of beer on the wall, 10 bottles of beer.
275 Take one down, pass it around, 9 bottles of beer on the wall.
277 9 bottles of beer on the wall, 9 bottles of beer.
278 Take one down, pass it around, 8 bottles of beer on the wall.
280 8 bottles of beer on the wall, 8 bottles of beer.
281 Take one down, pass it around, 7 bottles of beer on the wall.
283 7 bottles of beer on the wall, 7 bottles of beer.
284 Take one down, pass it around, 6 bottles of beer on the wall.
286 6 bottles of beer on the wall, 6 bottles of beer.
287 Take one down, pass it around, 5 bottles of beer on the wall.
289 5 bottles of beer on the wall, 5 bottles of beer.
290 Take one down, pass it around, 4 bottles of beer on the wall.
292 4 bottles of beer on the wall, 4 bottles of beer.
293 Take one down, pass it around, 3 bottles of beer on the wall.
295 3 bottles of beer on the wall, 3 bottles of beer.
296 Take one down, pass it around, 2 bottles of beer on the wall.
298 2 bottles of beer on the wall, 2 bottles of beer.
299 Take one down, pass it around, 1 bottle of beer on the wall.
301 1 bottle of beer on the wall, 1 bottle of beer.
302 Take one down, pass it around, no more bottles of beer on the wall.
304 No more bottles of beer on the wall, no more bottles of beer.
305 Go to the store and buy some more, 99 bottles of beer on the wall.
308 [ [ 99-bottles ] with-string-writer ] unit-test