Sha256: d2c8abfe9d8c9dede292450af715e0abef70404cb9396bab81a3fc5ee9e73565

Contents?: true

Size: 317 Bytes

Versions: 52

Compression:

Stored size: 317 Bytes

Contents

require File.expand_path('../../../spec_helper', __FILE__)

describe "Float#+" do
  it "returns self plus other" do
    (491.213 + 2).should be_close(493.213, TOLERANCE)
    (9.99 + bignum_value).should be_close(9223372036854775808.000, TOLERANCE)
    (1001.99 + 5.219).should be_close(1007.209, TOLERANCE)
  end
end

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
rhodes-3.3.4 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.3 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.3.beta.4 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.3.beta.3 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.3.beta.2 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.3.beta.1 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.2 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.2.beta.7 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.2.beta.6 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.2.beta.5 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.2.beta.4 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.2.beta.3 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.2.beta.2 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.2.beta.1 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.1 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.0 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.0.beta.3 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.0.beta.2 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.3.0.beta.1 spec/framework_spec/app/spec/core/float/plus_spec.rb
rhodes-3.2.3 spec/framework_spec/app/spec/core/float/plus_spec.rb