summaryrefslogtreecommitdiff
path: root/test/bigdecimal
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-09-22 11:55:00 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-09-22 11:55:00 +0900
commitb4c328bebcf45b7a983f7e5ce29ba6ec57ed1a1a (patch)
tree5e1c082d1b9b53eea928ecf42aa6b918dba38a8e /test/bigdecimal
parenta0ce0b6297852f64f6a05593e1364619da7a831d (diff)
test/bigdecimal/test_bigdecimal.rb: Use BigDecimal()
instead of deprecated BigDecimal.new.
Diffstat (limited to 'test/bigdecimal')
-rw-r--r--test/bigdecimal/test_bigdecimal.rb2
1 files changed, 1 insertions, 1 deletions
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
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))