mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* array.c (flatten): check if reentered. [ruby-dev:34798]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
559d021d20
commit
00e28c26a7
1 changed files with 2 additions and 2 deletions
|
@ -727,7 +727,7 @@ class TestArray < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_flatten_with_callcc
|
def test_flatten_with_callcc
|
||||||
respond_to?(:callcc) or require 'continuation'
|
respond_to?(:callcc, true) or require 'continuation'
|
||||||
o = Object.new
|
o = Object.new
|
||||||
def o.to_ary() callcc {|k| @cont = k; [1,2,3]} end
|
def o.to_ary() callcc {|k| @cont = k; [1,2,3]} end
|
||||||
begin
|
begin
|
||||||
|
@ -1148,7 +1148,7 @@ class TestArray < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_sort_with_callcc
|
def test_sort_with_callcc
|
||||||
respond_to?(:callcc) or require 'continuation'
|
respond_to?(:callcc, true) or require 'continuation'
|
||||||
n = 1000
|
n = 1000
|
||||||
cont = nil
|
cont = nil
|
||||||
ary = (1..100).to_a
|
ary = (1..100).to_a
|
||||||
|
|
Loading…
Add table
Reference in a new issue