diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-03 10:54:43 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-03 10:54:43 +0000 |
commit | 724d6ffd5469d2cb75f98b8ed2470b5cb2b2643c (patch) | |
tree | f37df067c8e7486bc0e474801952601bccb3b253 /test/ruby | |
parent | 74697788d4e93eafabc652657ecb477a39b75507 (diff) | |
download | ruby-724d6ffd5469d2cb75f98b8ed2470b5cb2b2643c.tar.gz |
add a test for [ruby-dev:34581].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_array.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index ee66ce0e5f..11be73c733 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -1513,4 +1513,11 @@ class TestArray < Test::Unit::TestCase a.product(a, a, a, a, a, a, a, a, a, a) {} end end + + class Array2 < Array + end + + def test_array_subclass + assert_equal(Array2, Array2[1,2,3].uniq.class, "[ruby-dev:34581]") + end end |