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:
mame 2018-04-17 08:26:19 +00:00
Родитель dae960ed1d
Коммит 035145722d
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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