mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Reset the result between assertions
This commit is contained in:
parent
ad3820886b
commit
44eca1b22f
1 changed files with 1 additions and 0 deletions
|
@ -1149,6 +1149,7 @@ x = __ENCODING__
|
|||
end
|
||||
o.instance_eval {i (-1.3).abs}
|
||||
assert_equal(1.3, o.x)
|
||||
o.i(nil)
|
||||
o.instance_eval {i = 0; i (-1.3).abs; i}
|
||||
assert_equal(1.3, o.x)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue