ruby-changes:8543
From: yugui <ko1@a...>
Date: Fri, 31 Oct 2008 18:58:11 +0900 (JST)
Subject: [ruby-changes:8543] Ruby:r20077 (ruby_1_9_1, trunk): * test/ruby/test_array.rb (test_array_subclass) test for r20076.
yugui 2008-10-31 18:57:45 +0900 (Fri, 31 Oct 2008) New Revision: 20077 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20077 Log: * test/ruby/test_array.rb (test_array_subclass) test for r20076. Modified files: branches/ruby_1_9_1/ChangeLog branches/ruby_1_9_1/test/ruby/test_array.rb trunk/ChangeLog trunk/test/ruby/test_array.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 20076) +++ ChangeLog (revision 20077) @@ -1,6 +1,10 @@ +Fri Oct 31 18:51:42 2008 Yuki Sonoda (Yugui) <yugui@y...> + + * test/ruby/test_array.rb (test_array_subclass): test for r20076. + Fri Oct 31 18:42:19 2008 Yuki Sonoda (Yugui) <yugui@y...> - * array.c (ary_partial0): recovers mistakenly feature change at r19723. + * array.c (ary_partial0): recovers the mistakenly changed feature at r19723. Array#[m,n] had returned an Array even for an instance of a subclass. Index: test/ruby/test_array.rb =================================================================== --- test/ruby/test_array.rb (revision 20076) +++ test/ruby/test_array.rb (revision 20077) @@ -1622,6 +1622,8 @@ def test_array_subclass assert_equal(Array2, Array2[1,2,3].uniq.class, "[ruby-dev:34581]") + assert_equal(Array2, Array2[1,2][0,1].class) # embeded + assert_equal(Array2, Array2[*(1..100)][1..99].class) #not embeded end def test_inspect Index: ruby_1_9_1/ChangeLog =================================================================== --- ruby_1_9_1/ChangeLog (revision 20076) +++ ruby_1_9_1/ChangeLog (revision 20077) @@ -1,6 +1,10 @@ +Fri Oct 31 18:51:42 2008 Yuki Sonoda (Yugui) <yugui@y...> + + * test/ruby/test_array.rb (test_array_subclass): test for r20076. + Fri Oct 31 18:42:19 2008 Yuki Sonoda (Yugui) <yugui@y...> - * array.c (ary_partial0): recovers mistakenly feature change at r19723. + * array.c (ary_partial0): recovers the mistakenly change feature at r19723. Array#[m,n] had returned an Array even for an instance of a subclass. Index: ruby_1_9_1/test/ruby/test_array.rb =================================================================== --- ruby_1_9_1/test/ruby/test_array.rb (revision 20076) +++ ruby_1_9_1/test/ruby/test_array.rb (revision 20077) @@ -1622,6 +1622,8 @@ def test_array_subclass assert_equal(Array2, Array2[1,2,3].uniq.class, "[ruby-dev:34581]") + assert_equal(Array2, Array2[1,2][0,1].class) # embeded + assert_equal(Array2, Array2[*(1..100)][1..99].class) #not embeded end def test_inspect -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/