summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-10 15:11:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-10 15:11:43 +0000
commitcb5ae2dfcb4c30351071e92f7820ade56bef409c (patch)
tree3d57524649908d0e2838ae1a41003f7c621b40fa /test/ruby
parent1e2695bd9be4f379927d8e4474e09e1c98eea6b5 (diff)
downloadruby-cb5ae2dfcb4c30351071e92f7820ade56bef409c.tar.gz
ruby-cb5ae2dfcb4c30351071e92f7820ade56bef409c.tar.xz
ruby-cb5ae2dfcb4c30351071e92f7820ade56bef409c.zip
* array.c (ary_join_1): should recurse for element array.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_array.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index 469cd5386..c51e179a5 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -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