1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add some assertions for BigDecimal#to_s

This commit is contained in:
Yosuke Kabuto 2016-05-15 14:49:53 +09:00
parent 0827f9932f
commit 330e011c6c

View file

@ -5,5 +5,7 @@ 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