Skip to content

Commit

Permalink
test/bigdecimal/test_bigdecimal.rb: Use BigDecimal()
Browse files Browse the repository at this point in the history
instead of deprecated BigDecimal.new.
  • Loading branch information
mame committed Sep 22, 2019
1 parent a0ce0b6 commit b4c328b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/bigdecimal/test_bigdecimal.rb
Expand Up @@ -54,7 +54,7 @@ def test_BigDecimal
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))
Expand Down

0 comments on commit b4c328b

Please sign in to comment.