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{
214 ; rescue Exception; $a << 99; end; $a}
215 assert_equal %q{[1, 2, 3, 4, 6, 8, 9, 10, 11]}, %q{$a = []; begin; ; $a << 1
217 [1,2].each do; $a << 3
226 ; rescue Exception; $a << 99; end; $a}
227 assert_equal %q{[1, 2, 4, 99]}, %q{$a = []; begin; ; $a << 1
229 raise StandardError; $a << 3
233 ; rescue Exception; $a << 99; end; $a}
234 assert_equal %q{[1, 2, 3, 4]}, %q{$a = []; begin; ; $a << 1
238 ; rescue Exception; $a << 99; end; $a}
239 assert_equal %q{[1, 2, 3, 5, 99]}, %q{$a = []; begin; ; $a << 1
240 [1,2].each do; $a << 2
244 raise StandardError; $a << 6
248 ; rescue Exception; $a << 99; end; $a}
249 assert_equal %q{3}, %q{
259 assert_equal %q{4}, %q{
272 assert_equal %q{34}, %q{
276 m(1, 1.times{break 3}) +
277 m(10, (1.times{next 3}; 20))
279 assert_equal %q{[1, 2, 3, 6, 7]}, %q{$a = []; begin; ; $a << 1
286 ; rescue Exception; $a << 99; end; $a}
287 assert_equal %q{[1, 2, 3, 4, 8, 9]}, %q{$a = []; begin; ; $a << 1
296 ; rescue Exception; $a << 99; end; $a}
297 assert_equal %q{[1, 2, 3, 2, 3, 2, 3, 6, 7]}, %q{$a = []; begin; ; $a << 1
304 ; rescue Exception; $a << 99; end; $a}
305 assert_equal %q{[1, 2, 3, 4, 2, 3, 4, 2, 3, 4, 8, 9]}, %q{$a = []; begin; ; $a << 1
314 ; rescue Exception; $a << 99; end; $a}
315 assert_equal %q{[1, 2, 3, 6, 7]}, %q{$a = []; begin; ; $a << 1
322 ; rescue Exception; $a << 99; end; $a}
323 assert_equal %q{[1, 2, 3, 4, 8, 9]}, %q{$a = []; begin; ; $a << 1
332 ; rescue Exception; $a << 99; end; $a}
333 assert_equal %q{[1, 2, 3, 4, 5, 3, 4, 5, 3, 4, 5, 8, 9]}, %q{$a = []; begin; ; $a << 1
342 ; rescue Exception; $a << 99; end; $a}
343 assert_equal %q{1}, %q{
356 assert_equal %q{[1, 2, 3, 5, 2, 3, 5, 7, 8]}, %q{$a = []; begin; ; $a << 1
357 [1,2].each do; $a << 2
364 ; rescue Exception; $a << 99; end; $a}
365 assert_equal %q{[1, 2, 6, 3, 5, 7, 8]}, %q{$a = []; begin; ; $a << 1
367 def o.test(a); $a << 3
373 ; rescue Exception; $a << 99; end; $a}
374 assert_equal %q{[1, 4, 7, 5, 8, 9]}, %q{$a = []; begin; ; $a << 1
375 def m1 *args; $a << 2
379 m1(:a, :b, (return 1; :c)); $a << 6
383 ; rescue Exception; $a << 99; end; $a}
384 assert_equal %q{[1, 8, 2, 3, 4, 5, 9, 10]}, %q{$a = []; begin; ; $a << 1
394 ; rescue Exception; $a << 99; end; $a}
395 assert_equal %q{[1, 3, 11, 4, 5, 6, 7, 12, 13]}, %q{$a = []; begin; ; $a << 1
408 ; rescue Exception; $a << 99; end; $a}
409 assert_equal %q{[1, 16, 2, 3, 4, 5, 6, 7, 10, 11, 17, 18]}, %q{$a = []; begin; ; $a << 1
427 ; rescue Exception; $a << 99; end; $a}
428 assert_equal %q{[:ok, :ok2, :last]}, %q{
449 assert_equal %q{[:ok, :ok2, :last]}, %q{
470 assert_equal %q{[:ok, :ok2, :last]}, %q{
494 assert_equal %Q{ENSURE\n}, %q{
503 }, '[ruby-dev:37967]'
505 [['[ruby-core:28129]', %q{
508 define_method(:dynamic_method) do
509 "dynamically defined method"
521 ['[ruby-core:28132]', %q{
534 ['[ruby-core:39125]', %q{
547 ['[ruby-dev:45656]', %q{
554 1.times { Proc.new(&block) }
559 }]].each do |bug, src|
560 assert_equal "foo", src + %q{e.detect {true}}, bug
561 assert_equal "true", src + %q{e.any? {true}}, bug
562 assert_equal "false", src + %q{e.all? {false}}, bug
563 assert_equal "true", src + %q{e.include?(:foo)}, bug
566 assert_equal "foo", %q{
591 }, '[ruby-dev:46372]'
593 assert_equal "foo", %q{
601 }, '[ruby-core:87830]'