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

ruby-changes:2174

From: ko1@a...
Date: 9 Oct 2007 17:15:56 +0900
Subject: [ruby-changes:2174] akr - Ruby:r13665 (trunk): add a test for .

akr	2007-10-09 17:15:37 +0900 (Tue, 09 Oct 2007)

  New Revision: 13665

  Modified files:
    trunk/bootstraptest/test_knownbug.rb

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


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=13665&r2=13664

Index: bootstraptest/test_knownbug.rb
===================================================================
--- bootstraptest/test_knownbug.rb	(revision 13664)
+++ bootstraptest/test_knownbug.rb	(revision 13665)
@@ -33,3 +33,12 @@
   }
 }, '[ruby-dev:31982]'
 
+assert_normal_exit %q{
+  ary = (1..100).to_a
+  ary.permutation(2) {|x|
+    if x == [1,2]
+      ObjectSpace.each_object(Array) {|o| o.clear if o == ary && o.object_id != ary.object_id }
+    end
+  }
+}, '[ruby-dev:31985]'
+

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

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