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:
parent
0827f9932f
commit
330e011c6c
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue