1 assert_equal %q{[1, 2, 4, 5, 6, 7, 8]}, %q{$a = []; begin; ; $a << 1
9 ; rescue Exception; $a << 99; end; $a}
10 assert_equal %q{[1, 2, 3, 5, 6, 7, 8]}, %q{$a = []; begin; ; $a << 1
12 [1,2].each do; $a << 3
18 ; rescue Exception; $a << 99; end; $a}
19 assert_equal %q{ok}, %q{
20 ["a"].inject("ng"){|x,y|
24 assert_equal %q{ok}, %q{
25 unless ''.respond_to? :lines
37 assert_equal %q{[1, 2, 4, 5]}, %q{$a = []; begin; ; $a << 1
38 ["a"].inject("ng"){|x,y|; $a << 2
42 ; rescue Exception; $a << 99; end; $a}
43 assert_equal %q{[1, 2, 4, 5]}, %q{$a = []; begin; ; $a << 1
44 ('a'..'b').map{|e|; $a << 2
48 ; rescue Exception; $a << 99; end; $a}
49 assert_equal %q{[1, 2, 3, 5, 7, 8]}, %q{$a = []; begin; ; $a << 1
50 [1,2].each do; $a << 2
57 ; rescue Exception; $a << 99; end; $a}
58 assert_equal %q{[1, 2, 3, 4, 5, 6, 9, 10]}, %q{$a = []; begin; ; $a << 1
68 ; rescue Exception; $a << 99; end; $a}
69 assert_equal %q{[1, 2, 3, 4, 5, 7, 10, 11]}, %q{$a = []; begin; ; $a << 1
80 ; rescue Exception; $a << 99; end; $a}
81 assert_equal %q{[1, 2, 3, 4, 5, 7, 10, 11]}, %q{$a = []; begin; ; $a << 1
92 ; rescue Exception; $a << 99; end; $a}
93 assert_equal %q{[1, 2, 3, 5, 8, 9]}, %q{$a = []; begin; ; $a << 1
94 [1,2].each do; $a << 2
96 raise StandardError; $a << 4
102 ; rescue Exception; $a << 99; end; $a}
103 assert_equal %q{[1, 2, 3, 5, 8, 9]}, %q{$a = []; begin; ; $a << 1
104 [1,2].each do; $a << 2
106 raise StandardError; $a << 4
112 ; rescue Exception; $a << 99; end; $a}
113 assert_equal %q{[1, 2, 3, 4, 6, 8, 10, 11]}, %q{$a = []; begin; ; $a << 1
114 [1,2].each do; $a << 2
124 ; rescue Exception; $a << 99; end; $a}
125 assert_equal %q{[1, 2, 3, 4, 5, 6, 7, 8, 10, 13, 3, 4, 5, 6, 7, 8, 10, 13, 3, 4, 5, 6, 7, 8, 10, 13, 14, 15]}, %q{$a = []; begin; ; $a << 1
140 ; rescue Exception; $a << 99; end; $a}
141 assert_equal %q{[1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 14, 6, 7, 8, 9, 11, 14, 6, 7, 8, 9, 11, 14, 15, 3, 4, 5, 6, 7, 8, 9, 11, 14, 6, 7, 8, 9, 11, 14, 6, 7, 8, 9, 11, 14, 15, 3, 4, 5, 6, 7, 8, 9, 11, 14, 6, 7, 8, 9, 11, 14, 6, 7, 8, 9, 11, 14, 15, 16, 17]}, %q{$a = []; begin; ; $a << 1
158 ; rescue Exception; $a << 99; end; $a}
159 assert_equal %q{[1, 2, 3, 4, 5, 6, 7, 8, 10, 13, 3, 4, 5, 6, 7, 8, 10, 13, 3, 4, 5, 6, 7, 8, 10, 13, 14, 15]}, %q{$a = []; begin; ; $a << 1
174 ; rescue Exception; $a << 99; end; $a}
175 assert_equal %q{[1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 14, 6, 7, 8, 9, 11, 14, 6, 7, 8, 9, 11, 14, 15, 3, 4, 5, 6, 7, 8, 9, 11, 14, 6, 7, 8, 9, 11, 14, 6, 7, 8, 9, 11, 14, 15, 3, 4, 5, 6, 7, 8, 9, 11, 14, 6, 7, 8, 9, 11, 14, 6, 7, 8, 9, 11, 14, 15, 16, 17]}, %q{$a = []; begin; ; $a << 1
192 ; rescue Exception; $a << 99; end; $a}
193 assert_equal %q{[1, 2, 3, 5, 8, 9]}, %q{$a = []; begin; ; $a << 1
202 ; rescue Exception; $a << 99; end; $a}
203 assert_equal %q{[1, 2, 3, 5, 99]}, %q{$a = []; begin; ; $a << 1
212 ; rescue Exception; $a << 99; end; $a}
213 assert_equal %q{[1, 2, 3, 4, 6, 8, 9, 10, 11]}, %q{$a = []; begin; ; $a << 1
215 [1,2].each do; $a << 3
224 ; rescue Exception; $a << 99; end; $a}
225 assert_equal %q{[1, 2, 4, 99]}, %q{$a = []; begin; ; $a << 1
227 raise StandardError; $a << 3
231 ; rescue Exception; $a << 99; end; $a}
232 assert_equal %q{[1, 2, 3, 4]}, %q{$a = []; begin; ; $a << 1
236 ; rescue Exception; $a << 99; end; $a}
237 assert_equal %q{[1, 2, 3, 5, 99]}, %q{$a = []; begin; ; $a << 1
238 [1,2].each do; $a << 2
242 raise StandardError; $a << 6
246 ; rescue Exception; $a << 99; end; $a}
247 assert_equal %q{3}, %q{
257 assert_equal %q{4}, %q{
270 assert_equal %q{34}, %q{
274 m(1, 1.times{break 3}) +
275 m(10, (1.times{next 3}; 20))
277 assert_equal %q{[1, 2, 3, 6, 7]}, %q{$a = []; begin; ; $a << 1
284 ; rescue Exception; $a << 99; end; $a}
285 assert_equal %q{[1, 2, 3, 4, 8, 9]}, %q{$a = []; begin; ; $a << 1
294 ; rescue Exception; $a << 99; end; $a}
295 assert_equal %q{[1, 2, 3, 2, 3, 2, 3, 6, 7]}, %q{$a = []; begin; ; $a << 1
302 ; rescue Exception; $a << 99; end; $a}
303 assert_equal %q{[1, 2, 3, 4, 2, 3, 4, 2, 3, 4, 8, 9]}, %q{$a = []; begin; ; $a << 1
312 ; rescue Exception; $a << 99; end; $a}
313 assert_equal %q{[1, 2, 3, 6, 7]}, %q{$a = []; begin; ; $a << 1
320 ; rescue Exception; $a << 99; end; $a}
321 assert_equal %q{[1, 2, 3, 4, 8, 9]}, %q{$a = []; begin; ; $a << 1
330 ; rescue Exception; $a << 99; end; $a}
331 assert_equal %q{[1, 2, 3, 4, 5, 3, 4, 5, 3, 4, 5, 8, 9]}, %q{$a = []; begin; ; $a << 1
340 ; rescue Exception; $a << 99; end; $a}
341 assert_equal %q{1}, %q{
354 assert_equal %q{[1, 2, 3, 5, 2, 3, 5, 7, 8]}, %q{$a = []; begin; ; $a << 1
355 [1,2].each do; $a << 2
362 ; rescue Exception; $a << 99; end; $a}
363 assert_equal %q{[1, 2, 6, 3, 5, 7, 8]}, %q{$a = []; begin; ; $a << 1
365 def o.test(a); $a << 3
371 ; rescue Exception; $a << 99; end; $a}
372 assert_equal %q{[1, 4, 7, 5, 8, 9]}, %q{$a = []; begin; ; $a << 1
373 def m1 *args; $a << 2
377 m1(:a, :b, (return 1; :c)); $a << 6
381 ; rescue Exception; $a << 99; end; $a}
382 assert_equal %q{[1, 8, 2, 3, 4, 5, 9, 10]}, %q{$a = []; begin; ; $a << 1
392 ; rescue Exception; $a << 99; end; $a}
393 assert_equal %q{[1, 3, 11, 4, 5, 6, 7, 12, 13]}, %q{$a = []; begin; ; $a << 1
406 ; rescue Exception; $a << 99; end; $a}
407 assert_equal %q{[1, 16, 2, 3, 4, 5, 6, 7, 10, 11, 17, 18]}, %q{$a = []; begin; ; $a << 1
425 ; rescue Exception; $a << 99; end; $a}
426 assert_equal %q{[:ok, :ok2, :last]}, %q{
447 assert_equal %q{[:ok, :ok2, :last]}, %q{
468 assert_equal %q{[:ok, :ok2, :last]}, %q{