[前][次][番号順一覧][スレッド一覧]

ruby-changes:5036

From: akr <ko1@a...>
Date: Thu, 22 May 2008 17:41:19 +0900 (JST)
Subject: [ruby-changes:5036] akr - Ruby:r16529 (trunk): add a test for .

akr	2008-05-22 17:41:07 +0900 (Thu, 22 May 2008)

  New Revision: 16529

  Modified files:
    trunk/test/ruby/test_continuation.rb

  Log:
    add a test for [ruby-dev:34802].


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_continuation.rb?r1=16529&r2=16528&diff_format=u

Index: test/ruby/test_continuation.rb
===================================================================
--- test/ruby/test_continuation.rb	(revision 16528)
+++ test/ruby/test_continuation.rb	(revision 16529)
@@ -63,5 +63,19 @@
       $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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]