aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_rational.rb
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-10 02:36:16 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-10 02:36:16 +0000
commitf72be814d98f37a2f9423b46a42b35d964070d33 (patch)
treee5a8d6aba89ef69df04055fca981228a09399269 /test/ruby/test_rational.rb
parentadc9c71fbe473b18ae16b9aa0391fcbc36a39bb0 (diff)
downloadruby-f72be814d98f37a2f9423b46a42b35d964070d33.tar.gz
internal.h: change the default rounding mode to half-up
* internal.h (ROUND_DEFAULT): changed to RUBY_NUM_ROUND_HALF_UP. [Bug #12958] [ruby-core:78204] * test/ruby/test_integer.rb: fix assertions for the above change. * test/ruby/test_rational.rb: ditto. * test/test_mathn.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rational.rb')
-rw-r--r--test/ruby/test_rational.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_rational.rb b/test/ruby/test_rational.rb
index 168383a106..99f80bc561 100644
--- a/test/ruby/test_rational.rb
+++ b/test/ruby/test_rational.rb
@@ -598,10 +598,10 @@ class Rational_Test < Test::Unit::TestCase
def test_trunc
[[Rational(13, 5), [ 2, 3, 2, 3, 3, 3, 3]], # 2.6
- [Rational(5, 2), [ 2, 3, 2, 2, 2, 3, 2]], # 2.5
+ [Rational(5, 2), [ 2, 3, 2, 3, 2, 3, 2]], # 2.5
[Rational(12, 5), [ 2, 3, 2, 2, 2, 2, 2]], # 2.4
[Rational(-12,5), [-3, -2, -2, -2, -2, -2, -2]], # -2.4
- [Rational(-5, 2), [-3, -2, -2, -2, -2, -3, -2]], # -2.5
+ [Rational(-5, 2), [-3, -2, -2, -3, -2, -3, -2]], # -2.5
[Rational(-13, 5), [-3, -2, -2, -3, -3, -3, -3]], # -2.6
].each do |i, a|
s = proc {i.inspect}