aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-29 00:45:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-29 00:45:41 +0000
commit4e86521c13f8b9e185729fdd4f172bd43fc74583 (patch)
tree03dd917a9fb6e1980ad4a9d6152be97159ef50c5 /test
parent0b876c7536add4b0b8d09e931d318688f3b5fb9a (diff)
downloadruby-4e86521c13f8b9e185729fdd4f172bd43fc74583.tar.gz
rational.c: may be float
* rational.c (f_muldiv): Integer#** can return Rational with Float right now. [ruby-core:89212] [Bug #15175] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_integer.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_integer.rb b/test/ruby/test_integer.rb
index 51737d3d1f..acba5aca1a 100644
--- a/test/ruby/test_integer.rb
+++ b/test/ruby/test_integer.rb
@@ -24,6 +24,9 @@ class TestInteger < Test::Unit::TestCase
rescue
nil
end, "[ruby-dev:32084] [ruby-dev:34547]")
+
+ x = EnvUtil.suppress_warning {2 ** -0x4000000000000000}
+ assert_in_delta(0.0, (x / 2), Float::EPSILON)
end
def test_lshift