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

Version Path
backlog-0.37.2 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.37.1 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.36.2 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.21.3 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.22.1 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.22.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.23.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.24.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.23.1 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.25.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.26.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.28.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.29.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.31.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.30.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.31.1 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.32.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.33.0 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.33.1 test/unit/big_decimal_yaml_fix_test.rb
backlog-0.34.1 test/unit/big_decimal_yaml_fix_test.rb