mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00

move fixed bug. * bootstraptest/test_m17n.rb: added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
44 lines
763 B
Ruby
44 lines
763 B
Ruby
#
|
|
# This test file concludes tests which point out known bugs.
|
|
# So all tests will cause failure.
|
|
#
|
|
|
|
assert_equal '0', %q{
|
|
GC.stress = true
|
|
pid = fork {}
|
|
Process.wait pid
|
|
$?.to_i
|
|
}, '[ruby-dev:32404]'
|
|
|
|
assert_equal 'ok', %q{
|
|
class C
|
|
define_method(:foo) do |arg, &block|
|
|
if block then block.call else arg end
|
|
end
|
|
end
|
|
C.new.foo("ng") {"ok"}
|
|
}, '[ruby-talk:266422]'
|
|
|
|
assert_equal 'ok', %q{
|
|
STDERR.reopen(STDOUT)
|
|
class C
|
|
define_method(:foo) do |&block|
|
|
block.call if block
|
|
end
|
|
result = "ng"
|
|
new.foo() {result = "ok"}
|
|
result
|
|
end
|
|
}
|
|
|
|
assert_normal_exit %q{
|
|
eval "while true; return; end rescue p $!"
|
|
}, '[ruby-dev:31663]'
|
|
|
|
assert_equal 'ok', %q{
|
|
1.times{
|
|
eval("break")
|
|
}
|
|
:ok
|
|
}, '[ruby-dev:32525]'
|
|
|