ruby-changes:32849
From: zzak <ko1@a...>
Date: Thu, 13 Feb 2014 16:55:37 +0900 (JST)
Subject: [ruby-changes:32849] zzak:r44928 (trunk): * test/ruby/test_array.rb: Ensure flatten! is used for test_flatten
zzak 2014-02-13 16:55:34 +0900 (Thu, 13 Feb 2014) New Revision: 44928 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44928 Log: * test/ruby/test_array.rb: Ensure flatten! is used for test_flatten Patch by @ksss [Fixes GH-530] https://github.com/ruby/ruby/pull/530 Modified files: trunk/ChangeLog trunk/test/ruby/test_array.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 44927) +++ ChangeLog (revision 44928) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Feb 13 16:54:32 2014 Zachary Scott <e@z...> + + * test/ruby/test_array.rb: Ensure flatten! is used for test_flatten + Patch by @ksss [Fixes GH-530] https://github.com/ruby/ruby/pull/530 + Thu Feb 13 15:43:16 2014 Nobuyoshi Nakada <nobu@r...> * parse.y (IDSET_ATTRSET_FOR_INTERN): fix off-by-one bug. Index: test/ruby/test_array.rb =================================================================== --- test/ruby/test_array.rb (revision 44927) +++ test/ruby/test_array.rb (revision 44928) @@ -798,9 +798,9 @@ class TestArray < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_array.rb#L798 assert_nil(a5.flatten!(0), '[ruby-core:23382]') assert_equal(@cls[1, 2, 3, 4, 5, 6], a5) - assert_equal(@cls[], @cls[].flatten) + assert_nil(@cls[].flatten!) assert_equal(@cls[], - @cls[@cls[@cls[@cls[],@cls[]],@cls[@cls[]],@cls[]],@cls[@cls[@cls[]]]].flatten) + @cls[@cls[@cls[@cls[],@cls[]],@cls[@cls[]],@cls[]],@cls[@cls[@cls[]]]].flatten!) assert_nil(@cls[].flatten!(0), '[ruby-core:23382]') end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/