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

Version Path
backlog-0.20.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.20.1 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.21.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.21.2 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.21.1 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.3.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.3.3 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.3.1 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.3.2 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.3.4 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.3.6 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.3.5 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.3.7 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.3.8 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.3.9 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.5.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.4.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.5.1 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.5.2 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.5.10 test/unit/big_decimal_yaml_fix_test.rb