summaryrefslogtreecommitdiff
path: root/test/psych/test_numeric.rb
blob: 9adb058a325849be980d669c04bb43d587e0fe90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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