mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 01:54:00 +02:00
* test/ruby/test_array.rb (test_array_subclass) test for r20076.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b4729e2db3
commit
7ac0beaeea
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue