diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-22 01:32:32 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-22 01:32:32 +0000 |
commit | 6ed29c55ef84a2dab81a2b7eb8c2a0516438f333 (patch) | |
tree | 05d579250a6c3186ada2e5fb99d52def0b4b8fbd /bootstraptest | |
parent | c227d3feb393c7aaa4e40612dc1ac39e598df3b4 (diff) | |
download | ruby-6ed29c55ef84a2dab81a2b7eb8c2a0516438f333.tar.gz |
add test for [ruby-dev:32329].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_knownbug.rb | 21 |
1 files changed, 21 insertions, 0 deletions
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]' |