1
0
Fork 0
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:
Nobuyoshi Nakada 2019-06-30 09:40:55 +09:00
parent ad3820886b
commit 44eca1b22f
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

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