mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
dae960ed1d
commit
035145722d
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue