Sha256: 6f9c3d831456d9a4a7ae087cd415d24d815bf74c4dbc29cd4ba21c513183d7e4

Contents?: true

Size: 377 Bytes

Versions: 2

Compression:

Stored size: 377 Bytes

Contents

require 'abstract_unit'

class BigDecimalTest < Test::Unit::TestCase
  def test_to_yaml
    assert_equal("--- 100000.30020320320000000000000000000000000000001\n", BigDecimal.new('100000.30020320320000000000000000000000000000001').to_yaml)
    assert_equal("--- .Inf\n", BigDecimal.new('Infinity').to_yaml)
    assert_equal("--- .NaN\n", BigDecimal.new('NaN').to_yaml)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
antfarm-0.3.0 rails/vendor/rails/activesupport/test/core_ext/bigdecimal.rb
antfarm-0.4.0 rails/vendor/rails/activesupport/test/core_ext/bigdecimal.rb