summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-17 02:04:37 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-17 02:04:37 +0000
commitae487eda6e961a7010b1a6914cb05100fdf207a5 (patch)
tree774c07686872ca1e9d86d22d0641b9efab9d3bbd /test/ruby
parent4d70a43e3d014ff2eb4f0d7a8efabff6e657439f (diff)
* array.c (recursive_join): raise ArgumentError for joining
recursive array. * array.c (ary_join_1): ditto. * test/ruby/test_array.rb (TestArray#test_join2): test updated for recursive join. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_array.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index c51e179..489b401 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -1490,12 +1490,12 @@ class TestArray < Test::Unit::TestCase
def test_join2
a = []
a << a
- assert_equal("[...]", a.join)
+ assert_raise(ArgumentError){a.join}
def (a = Object.new).to_a
[self]
end
- assert_equal("[...]", [a].join, '[ruby-core:24150]')
+ assert_raise(ArgumentError, '[ruby-core:24150]'){[a].join}
assert_equal("12345", [1,[2,[3,4],5]].join)
end