From 9ce6eb65bbeb97778c96fba55487c9aead469fea Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 22 Jul 2009 17:53:56 +0000 Subject: [PATCH] * test/ruby/test_enum.rb (TestEnumerable#each): recursive join now raises ArgumentError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/ruby/test_enum.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 43800d92f0..a02045316b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -61,6 +61,11 @@ Wed Jul 22 10:00:53 2009 NAKAMURA Usaku * win32/win32.c (WSAMSG): get rid of compile error on VC9 and mingw. +Wed Jul 22 06:35:56 2009 Yukihiro Matsumoto + + * test/ruby/test_enum.rb (TestEnumerable#each): recursive join now + raises ArgumentError. + Wed Jul 22 02:33:57 2009 Keiju Ishitsuka * lib/irb.rb: forget svn commit. diff --git a/test/ruby/test_enum.rb b/test/ruby/test_enum.rb index 660c59383a..10695ccba5 100644 --- a/test/ruby/test_enum.rb +++ b/test/ruby/test_enum.rb @@ -299,8 +299,8 @@ class TestEnumerable < Test::Unit::TestCase yield self end end - assert_equal("[...]", e.join(""), '[ruby-core:24150]') - assert_equal("[...]", [e].join(""), '[ruby-core:24150]') + assert_raise(ArgumentError){e.join("")} + assert_raise(ArgumentError){[e].join("")} e = Class.new { include Enumerable def initialize(*args)