Skip to content

Commit

Permalink
Removed comment block from test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ohler55 committed Jul 9, 2016
1 parent 5741049 commit d2aeb5c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/test_various.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,23 +175,22 @@ def test_fixnum

def test_float_parse
Oj.default_options = { :float_precision => 16, :bigdecimal_load => :auto }
=begin
n = Oj.load('0.00001234567890123456')
assert_equal(Float, n.class)
assert_equal('1.234567890123456e-05', "%0.15e" % [n])

n = Oj.load('-0.00001234567890123456')
assert_equal(Float, n.class)
assert_equal('-1.234567890123456e-05', "%0.15e" % [n])
=end

n = Oj.load('1000.0000123456789')
assert_equal(BigDecimal, n.class)
assert_equal('0.10000000123456789E4', n.to_s)
=begin

n = Oj.load('-0.000012345678901234567')
assert_equal(BigDecimal, n.class)
assert_equal('-0.12345678901234567E-4', n.to_s)
=end

end

def test_float_dump
Expand Down

0 comments on commit d2aeb5c

Please sign in to comment.