Sha256: a100d4fe6112e1e5ee3079a4a6c38e8bddc44d01e812af8cbb961fae3e9168f9
Contents?: true
Size: 502 Bytes
Versions: 16
Compression:
Stored size: 502 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe "OracleEnhancedAdapter to_d method" do it "BigDecimal#to_d returns the same decimal number" do d = BigDecimal.new("12345678901234567890.0123456789") d.to_d.should == d end it "Bignum#to_d translates large integer to decimal" do n = 12345678901234567890 n.to_d.should == BigDecimal.new(n.to_s) end it "Fixnum#to_d translates small integer to decimal" do n = 123456 n.to_d.should == BigDecimal.new(n.to_s) end end
Version data entries
16 entries across 16 versions & 4 rubygems