Sha256: 9620279da02134ff495b59c0174bf495e0484b9b41f21e71a08cc028b19633d8
Contents?: true
Size: 544 Bytes
Versions: 28
Compression:
Stored size: 544 Bytes
Contents
require 'test/unit' require 'yaml' require 'bigdecimal' require 'rubygems' require 'active_support' require 'big_decimal_yaml_fix' class BigDecimalYamlTest < Test::Unit::TestCase def test_to_yaml assert_equal "--- 1.0\n", BigDecimal.new('1').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
28 entries across 28 versions & 1 rubygems