Skip to content

Commit

Permalink
Reset the result between assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jun 30, 2019
1 parent ad38208 commit 44eca1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/ruby/test_parse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,7 @@ def o.i(x)
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
Expand Down

0 comments on commit 44eca1b

Please sign in to comment.