mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test for [ruby-dev:34802].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f73c84542c
commit
5fa02c5951
1 changed files with 14 additions and 0 deletions
|
@ -63,5 +63,19 @@ class TestContinuation < Test::Unit::TestCase
|
|||
$k.call if n < 100
|
||||
}, '[ruby-dev:34798]'
|
||||
end
|
||||
|
||||
def test_marshal_dump
|
||||
assert_normal_exit %q{
|
||||
require 'continuation'
|
||||
n = 0
|
||||
o = Object.new
|
||||
def o.marshal_dump() callcc {|k| $k = k }; "fofof" end
|
||||
a = [1,2,3,o,4,5,6]
|
||||
Marshal.dump(a).inspect
|
||||
n += 1
|
||||
$k.call if n < 100
|
||||
}, '[ruby-dev:34802]'
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue