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.0.5 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.1.1 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.1.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.1.2 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.10.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.10.1 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.10.3 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.10.4 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.10.5 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.10.2 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.10.7 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.10.6 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.11.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.10.8 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.12.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.12.2 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.12.1 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.12.3 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.12.4 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.14.0 test/unit/big_decimal_yaml_fix_test.rb