ruby-changes:56286
From: Nobuyoshi <ko1@a...>
Date: Sun, 30 Jun 2019 18:38:52 +0900 (JST)
Subject: [ruby-changes:56286] Nobuyoshi Nakada: 44eca1b22f (trunk): Reset the result between assertions
https://git.ruby-lang.org/ruby.git/commit/?id=44eca1b22f From 44eca1b22f96a3140d11d95f89948cbdae08daee Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 30 Jun 2019 09:40:55 +0900 Subject: Reset the result between assertions diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index 287c835..4a0c296 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -1149,6 +1149,7 @@ x = __ENCODING__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_parse.rb#L1149 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/