[前][次][番号順一覧][スレッド一覧]

ruby-changes:57859

From: Yusuke <ko1@a...>
Date: Sun, 22 Sep 2019 11:55:52 +0900 (JST)
Subject: [ruby-changes:57859] b4c328bebc (master): test/bigdecimal/test_bigdecimal.rb: Use BigDecimal()

https://git.ruby-lang.org/ruby.git/commit/?id=b4c328bebc

From b4c328bebcf45b7a983f7e5ce29ba6ec57ed1a1a Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Sun, 22 Sep 2019 11:55:00 +0900
Subject: test/bigdecimal/test_bigdecimal.rb: Use BigDecimal()

instead of deprecated BigDecimal.new.

diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb
index b3368b4..63db005 100644
--- a/test/bigdecimal/test_bigdecimal.rb
+++ b/test/bigdecimal/test_bigdecimal.rb
@@ -54,7 +54,7 @@ class TestBigDecimal < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/bigdecimal/test_bigdecimal.rb#L54
     assert_equal(111, BigDecimal("1_1_1_"))
     assert_equal(10**(-1), BigDecimal("1E-1"), '#4825')
     assert_equal(1234, BigDecimal(" \t\n\r \r1234 \t\n\r \r"))
-    bd = BigDecimal.new("1.12", 1)
+    bd = BigDecimal("1.12", 1)
     assert_same(bd, BigDecimal(bd))
     assert_same(bd, BigDecimal(bd, exception: false))
     assert_not_same(bd, BigDecimal(bd, 1))
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]