add test for [ruby-dev:32329].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c227d3feb3
commit
6ed29c55ef
@ -65,3 +65,24 @@ assert_equal 'ok', %q{
|
|||||||
assert_equal '(?-mix:\000)', %q{
|
assert_equal '(?-mix:\000)', %q{
|
||||||
Regexp.new("\0")
|
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]'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user