зеркало из https://github.com/github/ruby.git
Remove the assertions that have no meaning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
dae960ed1d
Коммит
035145722d
|
@ -129,17 +129,17 @@ class TestAssignment < Test::Unit::TestCase
|
|||
}
|
||||
|
||||
assert_raise(NoMethodError, bug11096) {
|
||||
assert_equal(43, o.instance_eval {self.foo += 1})
|
||||
o.instance_eval {self.foo += 1}
|
||||
}
|
||||
assert_raise(NoMethodError, bug11096) {
|
||||
assert_equal(1, o.instance_eval {self.foo &&= 1})
|
||||
o.instance_eval {self.foo &&= 1}
|
||||
}
|
||||
|
||||
assert_raise(NoMethodError, bug11096) {
|
||||
assert_equal(43, o.instance_eval {self[0] += 1})
|
||||
o.instance_eval {self[0] += 1}
|
||||
}
|
||||
assert_raise(NoMethodError, bug11096) {
|
||||
assert_equal(1, o.instance_eval {self[0] &&= 1})
|
||||
o.instance_eval {self[0] &&= 1}
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче