Sha256: a551a9939c5fca1c8f7f5c874ac16b8fdffb82435698daae008812ccf0fc8e45

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

require 'psych/helper'

module Psych
  ###
  # Test numerics from YAML spec:
  # http://yaml.org/type/float.html
  # http://yaml.org/type/int.html
  class TestNumeric < TestCase
    def test_non_float_with_0
      str = Psych.load('--- 090')
      assert_equal '090', str
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
psych-1.2.2 test/psych/test_numeric.rb