From 7ac0beaeea75376eebfc87618815a190ad77ddc2 Mon Sep 17 00:00:00 2001 From: yugui Date: Fri, 31 Oct 2008 09:57:45 +0000 Subject: * test/ruby/test_array.rb (test_array_subclass) test for r20076. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_array.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index 820166a0a3..9edd31dfa7 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -1622,6 +1622,8 @@ class TestArray < Test::Unit::TestCase 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 -- cgit v1.2.3