mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 09:04:05 +02:00
* array.c (recursive_join): use obj to tell if recursion occurs.
[ruby-core:24150] * enum.c (enum_join): reverted r23966. [ruby-core:24196] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5e2a28d13d
commit
af8f8e5b0e
5 changed files with 33 additions and 39 deletions
|
@ -1491,6 +1491,11 @@ class TestArray < Test::Unit::TestCase
|
|||
a = []
|
||||
a << a
|
||||
assert_equal("[...]", a.join)
|
||||
|
||||
def (a = Object.new).to_a
|
||||
[self]
|
||||
end
|
||||
assert_equal("[...]", [a].join, , '[ruby-core:24150]')
|
||||
end
|
||||
|
||||
def test_to_a2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue