summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_array.rb7
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