aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_parse.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-30 09:40:55 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-30 11:45:38 +0900
commit44eca1b22f96a3140d11d95f89948cbdae08daee (patch)
tree52d318581127791ef3b7cae5cd3f95fc0593bfdc /test/ruby/test_parse.rb
parentad3820886b8bd13bb6dbb784ba999b26ac65461c (diff)
downloadruby-44eca1b22f96a3140d11d95f89948cbdae08daee.tar.gz
Reset the result between assertions
Diffstat (limited to 'test/ruby/test_parse.rb')
-rw-r--r--test/ruby/test_parse.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index 287c8358a0..4a0c296a84 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -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