From 6ed29c55ef84a2dab81a2b7eb8c2a0516438f333 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 22 Nov 2007 01:32:32 +0000 Subject: [PATCH] add test for [ruby-dev:32329]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_knownbug.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 411bd64f96..3636d7bca1 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -65,3 +65,24 @@ assert_equal 'ok', %q{ assert_equal '(?-mix:\000)', %q{ Regexp.new("\0") } + +assert_normal_exit %q{ + STDERR.reopen(STDOUT) + require 'yaml' + YAML.load("2000-01-01 00:00:00.#{"0"*1000} +00:00\n") +}, '[ruby-core:13735]' + +assert_equal 'ok', %q{ + class C + def each + yield [1,2] + yield 1,2 + end + end + vs1 = [] + C.new.each {|*v| vs1 << v } + e = C.new.to_enum + vs2 = [] + e.each {|*v| vs2 << v } + vs1 == vs2 ? :ok : :ng +}, '[ruby-dev:32329]'