Sha256: 7421af75726042e7c450ed314044ae84a0f921b5315f8e9c3db90606997f42ae
Contents?: true
Size: 514 Bytes
Versions: 91
Compression:
Stored size: 514 Bytes
Contents
require 'test/unit' require 'yaml' require 'bigdecimal' require 'rubygems' require 'active_support' 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
91 entries across 91 versions & 1 rubygems