* array.c (ary_join_1): should recurse for element array.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-07-10 15:11:43 +00:00
parent 161f0a1699
commit 38867cc115
4 changed files with 8 additions and 2 deletions

View file

@ -1496,6 +1496,7 @@ class TestArray < Test::Unit::TestCase
[self]
end
assert_equal("[...]", [a].join, '[ruby-core:24150]')
assert_equal("12345", [1,[2,[3,4],5]].join)
end
def test_to_a2