mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
9adaa9e9df
commit
9ce6eb65bb
2 changed files with 7 additions and 2 deletions
|
@ -61,6 +61,11 @@ Wed Jul 22 10:00:53 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* win32/win32.c (WSAMSG): get rid of compile error on VC9 and mingw.
|
* win32/win32.c (WSAMSG): get rid of compile error on VC9 and mingw.
|
||||||
|
|
||||||
|
Wed Jul 22 06:35:56 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/ruby/test_enum.rb (TestEnumerable#each): recursive join now
|
||||||
|
raises ArgumentError.
|
||||||
|
|
||||||
Wed Jul 22 02:33:57 2009 Keiju Ishitsuka <keiju@emperor2.pendome>
|
Wed Jul 22 02:33:57 2009 Keiju Ishitsuka <keiju@emperor2.pendome>
|
||||||
|
|
||||||
* lib/irb.rb: forget svn commit.
|
* lib/irb.rb: forget svn commit.
|
||||||
|
|
|
@ -299,8 +299,8 @@ class TestEnumerable < Test::Unit::TestCase
|
||||||
yield self
|
yield self
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
assert_equal("[...]", e.join(""), '[ruby-core:24150]')
|
assert_raise(ArgumentError){e.join("")}
|
||||||
assert_equal("[...]", [e].join(""), '[ruby-core:24150]')
|
assert_raise(ArgumentError){[e].join("")}
|
||||||
e = Class.new {
|
e = Class.new {
|
||||||
include Enumerable
|
include Enumerable
|
||||||
def initialize(*args)
|
def initialize(*args)
|
||||||
|
|
Loading…
Add table
Reference in a new issue