mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test for [ruby-dev:34581].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
74697788d4
commit
724d6ffd54
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue