ruby-changes:16223
From: nobu <ko1@a...>
Date: Sun, 6 Jun 2010 22:06:59 +0900 (JST)
Subject: [ruby-changes:16223] Ruby:r28189 (trunk): * test/ruby/test_array.rb (test_product): test for r28187.
nobu 2010-06-06 22:06:51 +0900 (Sun, 06 Jun 2010) New Revision: 28189 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28189 Log: * test/ruby/test_array.rb (test_product): test for r28187. Modified files: trunk/test/ruby/test_array.rb Index: test/ruby/test_array.rb =================================================================== --- test/ruby/test_array.rb (revision 28188) +++ test/ruby/test_array.rb (revision 28189) @@ -1523,6 +1523,11 @@ assert_equal([[1, 3, 6], [1, 3, 8], [1, 4, 6], [1, 4, 8], [1, 5, 6], [1, 5, 8], [2, 3, 6], [2, 3, 8], [2, 4, 6], [2, 4, 8], [2, 5, 6], [2, 5, 8]], acc, bug3394) + + def (o = Object.new).to_ary; GC.start; [3,4] end + acc = [1,2].product(*[o]*10) + assert_equal([1,2].product([3,4], [3,4], [3,4], [3,4], [3,4], [3,4], [3,4], [3,4], [3,4], [3,4]), + acc) end def test_permutation -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/