diff options
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_massign.rb | 15 | ||||
-rw-r--r-- | bootstraptest/test_syntax.rb | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/bootstraptest/test_massign.rb b/bootstraptest/test_massign.rb index 0c73b71461..ad31729a73 100644 --- a/bootstraptest/test_massign.rb +++ b/bootstraptest/test_massign.rb @@ -159,3 +159,18 @@ assert_equal 'ok', %q{ ary = [0, 1, 2, 3, 4, 5, 6] a, b, *c, d, e, f = *ary; [a, b, c, d, e, f] } + + +# +assert_equal 'ok', %q{ + a,s=[],"aaa" + 300.times { a<<s; s=s.succ } + eval <<-END__ + GC.stress=true + Fiber.new do + #{ a.join(",") },*zzz=1 + end.resume + END__ + :ok +}, '[ruby-dev:32581]' + diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb index 37b07b0c15..2be4efb388 100644 --- a/bootstraptest/test_syntax.rb +++ b/bootstraptest/test_syntax.rb @@ -644,7 +644,7 @@ assert_equal 'true', %q{ assert_normal_exit %q{ eval "while true; return; end rescue p $!" }, '[ruby-dev:31663]' -assert_equal :ok, %q{ +assert_equal '1', %q{ def bar raise end |