1
0
Fork 0
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:
akr 2008-05-03 10:54:43 +00:00
parent 74697788d4
commit 724d6ffd54

View file

@ -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