Sha256: 5ee7054d1075e21267554218b90a4cb56cd9438f076768af95356b32f22bb26e

Contents?: true

Size: 326 Bytes

Versions: 22

Compression:

Stored size: 326 Bytes

Contents

require 'spec_helper'
describe Upsert do
  describe "is precise" do
    it "stores small numbers precisely" do
      small = -0.00000000634943
      upsert = Upsert.new $conn, :pets
      upsert.row({:name => 'NotJerry'}, :lovability => small)
      Pet.first.lovability.should be_within(1e-11).of(small) # ?
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
upsert-2.9.10-java spec/precision_spec.rb
upsert-2.9.10 spec/precision_spec.rb
upsert-2.9.9-universal-java-11 spec/precision_spec.rb
upsert-2.9.9 spec/precision_spec.rb
upsert-2.2.1 spec/precision_spec.rb
upsert-2.2.0 spec/precision_spec.rb
upsert-2.1.2 spec/precision_spec.rb
upsert-2.1.1 spec/precision_spec.rb
upsert-2.1.0 spec/precision_spec.rb
upsert-2.0.4 spec/precision_spec.rb
upsert-2.0.3 spec/precision_spec.rb
upsert-2.0.2 spec/precision_spec.rb
upsert-2.0.1 spec/precision_spec.rb
upsert-2.0.0 spec/precision_spec.rb
upsert-1.2.0 spec/precision_spec.rb
upsert-1.1.7 spec/precision_spec.rb
upsert-1.1.6 spec/precision_spec.rb
upsert-1.1.5 spec/precision_spec.rb
upsert-1.1.4 spec/precision_spec.rb
upsert-1.1.3 spec/precision_spec.rb