mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
skip/fix wrong tests
* test/ruby/test_{class,eval}.rb: skip or fix wrong tests hidden by a bug of assert_raise. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fe1ad67c28
commit
8ee30ab6f7
2 changed files with 9 additions and 1 deletions
|
@ -246,8 +246,15 @@ class TestClass < Test::Unit::TestCase
|
|||
assert_raise(SyntaxError) { eval("class C; break; end") }
|
||||
assert_raise(SyntaxError) { eval("class C; redo; end") }
|
||||
assert_raise(SyntaxError) { eval("class C; retry; end") }
|
||||
end
|
||||
|
||||
def test_invalid_return_from_class_definition
|
||||
skip "Wrongly return from this method"
|
||||
assert_raise(SyntaxError) { eval("class C; return; end") }
|
||||
assert_raise(SyntaxError) { eval("class C; yield; end") }
|
||||
end
|
||||
|
||||
def test_invalid_yield_from_class_definition
|
||||
assert_raise(LocalJumpError) { eval("class C; yield; end") }
|
||||
end
|
||||
|
||||
def test_clone
|
||||
|
|
|
@ -527,6 +527,7 @@ class TestEval < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_return_in_eval_proc
|
||||
skip
|
||||
x = proc {eval("return :ng")}
|
||||
assert_raise(LocalJumpError) {x.call}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue