aboutsummaryrefslogblamecommitdiffstats
path: root/activesupport/test/core_ext/bigdecimal_test.rb
blob: 66e81f1162cf74d17b52348ac8c93508a3e2a5e4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                             
 

                                             
 
                                              
               



                                         
     
   
# frozen_string_literal: true

require "abstract_unit"
require "active_support/core_ext/big_decimal"

class BigDecimalTest < ActiveSupport::TestCase
  def test_to_s
    bd = BigDecimal.new "0.01"
    assert_equal "0.01", bd.to_s
    assert_equal "+0.01", bd.to_s("+F")
    assert_equal "+0.0 1", bd.to_s("+1F")
  end
end