summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-31 09:57:45 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-31 09:57:45 +0000
commit5dd0d970881e92992b4015f105bd7a28be959b1a (patch)
tree0bed146fd92b1d27bab6f530fdb639d3bcb66a29 /test
parent1e0971fd107b40a5cf5c43158005a57addf66521 (diff)
downloadruby-5dd0d970881e92992b4015f105bd7a28be959b1a.tar.gz
ruby-5dd0d970881e92992b4015f105bd7a28be959b1a.tar.xz
ruby-5dd0d970881e92992b4015f105bd7a28be959b1a.zip
* test/ruby/test_array.rb (test_array_subclass) test for r20076.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_array.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index 820166a0a..9edd31dfa 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